mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Always mark own messages as read
This commit is contained in:
parent
429450e060
commit
b289fd10b7
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,10 @@ export default class App extends Component {
|
|||
let isRead = this.hasReceipt(bufName, ReceiptType.READ, msg);
|
||||
// TODO: messages coming from infinite scroll shouldn't trigger notifications
|
||||
|
||||
if (client.isMyNick(msg.prefix.name)) {
|
||||
isRead = true;
|
||||
}
|
||||
|
||||
let msgUnread = Unread.NONE;
|
||||
if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) {
|
||||
let target = msg.params[0];
|
||||
|
|
Loading…
Reference in a new issue