fix: private messages cant be marked as read
This commit is contained in:
1 parent
52aba95583
commit
366b1ef29e
1 file changed
+21
-10
@@ -65,16 +65,27 @@
|
|||||||
|
|
||||||
loading = true
|
loading = true
|
||||||
|
|
||||||
if (item.type == 'person_mention') {
|
switch (item.type) {
|
||||||
await getClient().markPersonMentionAsRead({
|
case 'person_mention': {
|
||||||
person_mention_id: item.id,
|
await getClient().markPersonMentionAsRead({
|
||||||
read: isRead,
|
person_mention_id: item.id,
|
||||||
})
|
read: isRead,
|
||||||
} else if (item.type == 'comment_reply') {
|
})
|
||||||
await getClient().markCommentReplyAsRead({
|
break
|
||||||
comment_reply_id: item.id,
|
}
|
||||||
read: isRead,
|
case 'comment_reply': {
|
||||||
})
|
await getClient().markCommentReplyAsRead({
|
||||||
|
comment_reply_id: item.id,
|
||||||
|
read: isRead,
|
||||||
|
})
|
||||||
|
break
|
||||||
|
}
|
||||||
|
case 'private_message': {
|
||||||
|
await getClient().markPrivateMessageAsRead({
|
||||||
|
private_message_id: item.id,
|
||||||
|
read: isRead,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
item.read = isRead
|
item.read = isRead
|
||||||
|
|||||||
Reference in new issue
Block a user