Merge pull request #4038 from urbit/lf/dismiss-mention

chat-fe: autodismiss mentions whilst in channel
This commit is contained in:
matildepark 2020-11-30 15:26:57 -05:00 committed by GitHub
commit 61273d0db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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> {