From 3aea0f2c19ffaf1004de3dbf5c95d38fcf6021e5 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 29 Nov 2021 18:55:35 +0000 Subject: Prevent your own status from replacing another user's status Signed-off-by: Christopher Ng Signed-off-by: nextcloud-command --- core/src/views/Profile.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue index aec32a41186..0d855fc38cc 100644 --- a/core/src/views/Profile.vue +++ b/core/src/views/Profile.vue @@ -273,7 +273,9 @@ export default { methods: { handleStatusUpdate(status) { - this.status = status + if (this.isCurrentUser && status.userId === this.userId) { + this.status = status + } }, openStatusModal() { -- cgit v1.2.3