forked from CringeStudios/gamja
Fix unread marker going back
Receipts must never go back in time. Fixes: c428e504fe9c ("Don't show unread marker for outgoing messages")
This commit is contained in:
parent
e91b044134
commit
39c36e7a7b
@ -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…
x
Reference in New Issue
Block a user