mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Make HistoryView::Message a ClickHandlerHost.
This commit is contained in:
@@ -164,6 +164,13 @@ MessageIdsList Session::groupToIds(
|
||||
return result;
|
||||
}
|
||||
|
||||
MessageIdsList Session::itemOrItsGroup(not_null<HistoryItem*> item) const {
|
||||
if (const auto group = item->getFullGroup()) {
|
||||
return groupToIds(group);
|
||||
}
|
||||
return { 1, item->fullId() };
|
||||
}
|
||||
|
||||
void Session::setPinnedDialog(const Dialogs::Key &key, bool pinned) {
|
||||
setIsPinned(key, pinned);
|
||||
}
|
||||
@@ -292,4 +299,12 @@ Data::Feed *Session::feedLoaded(FeedId id) {
|
||||
return (it == _feeds.end()) ? nullptr : it->second.get();
|
||||
}
|
||||
|
||||
void Session::setMimeForwardIds(MessageIdsList &&list) {
|
||||
_mimeForwardIds = std::move(list);
|
||||
}
|
||||
|
||||
MessageIdsList Session::takeMimeForwardIds() {
|
||||
return std::move(_mimeForwardIds);
|
||||
}
|
||||
|
||||
} // namespace Data
|
||||
|
Reference in New Issue
Block a user