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

View file

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