Chore: Fix presence for current user (#1001)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
@@ -163,6 +163,7 @@ export default {
|
||||
...mapGetters({
|
||||
currentUser: 'getCurrentUser',
|
||||
currentUserId: 'getCurrentUserID',
|
||||
currentAvailabilityStatus: 'getCurrentUserAvailabilityStatus',
|
||||
}),
|
||||
},
|
||||
watch: {
|
||||
@@ -171,6 +172,11 @@ export default {
|
||||
this.initializeUser();
|
||||
}
|
||||
},
|
||||
currentAvailabilityStatus(newStatus, oldStatus) {
|
||||
if (newStatus !== oldStatus) {
|
||||
this.availability = newStatus;
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
if (this.currentUserId) {
|
||||
|
||||
Reference in New Issue
Block a user