Mark chat mention notifications as read when viewing the message
This commit is contained in:
parent
e32aa95092
commit
fce09e8c92
7 changed files with 73 additions and 9 deletions
|
@ -357,8 +357,16 @@ impl ChatPanel {
|
|||
let is_continuation = last_message.id != this_message.id
|
||||
&& this_message.sender.id == last_message.sender.id;
|
||||
|
||||
if this_message
|
||||
.mentions
|
||||
.iter()
|
||||
.any(|(_, user_id)| Some(*user_id) == self.client.user_id())
|
||||
{
|
||||
active_chat.rendered_message(this_message.id);
|
||||
}
|
||||
|
||||
(
|
||||
active_chat.message(ix).clone(),
|
||||
this_message.clone(),
|
||||
is_continuation,
|
||||
active_chat.message_count() == ix + 1,
|
||||
is_admin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue