mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Fix unread marker going back
Receipts must never go back in time.
Fixes: c428e504fe
("Don't show unread marker for outgoing messages")
This commit is contained in:
parent
e91b044134
commit
39c36e7a7b
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ export default class App extends Component {
|
|||
}
|
||||
|
||||
// Don't show unread marker for my own messages
|
||||
if (client.isMyNick(msg.prefix.name)) {
|
||||
if (client.isMyNick(msg.prefix.name) && (!prevReadReceipt || prevReadReceipt.time < msg.tags.time)) {
|
||||
prevReadReceipt = { time: msg.tags.time };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue