mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Replace SelectedItemSet with MessageIdsList.
Use vector<FullMsgId> everywhere instead QMap<..,HistoryItem*>. The old way the app crashed in case some messages were deleted. If the items are needed use HistoryItemsList=vector<HistoryItem*>.
This commit is contained in:
@@ -154,6 +154,8 @@ inline bool operator<(const FullMsgId &a, const FullMsgId &b) {
|
||||
return a.channel < b.channel;
|
||||
}
|
||||
|
||||
using MessageIdsList = std::vector<FullMsgId>;
|
||||
|
||||
inline PeerId peerFromMessage(const MTPmessage &msg) {
|
||||
auto compute = [](auto &message) {
|
||||
auto from_id = message.has_from_id() ? peerFromUser(message.vfrom_id) : 0;
|
||||
|
Reference in New Issue
Block a user