chat-fe: autodismiss mentions whilst in channel

This commit is contained in:
Liam Fitzgerald 2020-11-30 13:59:19 +10:00
parent 84694231ed
commit 908e2d32e6
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -182,6 +182,7 @@ export default class ChatWindow extends Component<ChatWindowProps, ChatWindowSta
if (this.props.unreadCount === 0) return;
this.props.api.chat.read(this.props.station);
this.props.api.hark.readIndex({ chat: { chat: this.props.station, mention: false }});
this.props.api.hark.readIndex({ chat: { chat: this.props.station, mention: true }});
}
fetchMessages(start, end, force = false): Promise<void> {