Highlight active topic in chats list.

This commit is contained in:
John Preston 2022-10-04 11:43:24 +04:00
parent 1e8dfb7315
commit b77756ce12
1 changed files with 6 additions and 0 deletions

View File

@ -1540,6 +1540,12 @@ not_null<History*> RepliesWidget::history() const {
}
Dialogs::RowDescriptor RepliesWidget::activeChat() const {
if (_topic) {
return {
_topic,
FullMsgId(_history->peer->id, ShowAtUnreadMsgId),
};
}
return {
_history,
FullMsgId(_history->peer->id, ShowAtUnreadMsgId)