From b1102f6e3e5e10480b39aca57fdb04d572807e80 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 17 Jul 2023 16:07:12 +0200 Subject: [PATCH] only mark other users messages as seen --- webapp/components/Chat/Chat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 1b5dd45ea..761973ef1 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -267,7 +267,7 @@ export default { const msgs = [] ;[...this.messages, ...Message].forEach((m) => { - m.seen = true + if (m.senderId !== this.currentUser.id) m.seen = true m.date = new Date(m.date).toDateString() msgs[m.indexId] = m })