mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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:
@@ -178,9 +178,8 @@ public:
|
||||
|
||||
int32 dlgsWidth() const;
|
||||
|
||||
void showForwardLayer(const SelectedItemSet &items);
|
||||
void showForwardLayer(MessageIdsList &&items);
|
||||
void showSendPathsLayer();
|
||||
void showForwardBox(SelectedItemSet &&items);
|
||||
void deleteLayer(int selectedCount = 0); // 0 - context item
|
||||
void cancelUploadLayer();
|
||||
void shareContactLayer(UserData *contact);
|
||||
@@ -189,7 +188,7 @@ public:
|
||||
void hiderLayer(object_ptr<HistoryHider> h);
|
||||
void noHider(HistoryHider *destroyed);
|
||||
bool setForwardDraft(PeerId peer, ForwardWhatMessages what);
|
||||
bool setForwardDraft(PeerId peer, const SelectedItemSet &items);
|
||||
bool setForwardDraft(PeerId peer, MessageIdsList &&items);
|
||||
bool shareUrl(
|
||||
not_null<PeerData*> peer,
|
||||
const QString &url,
|
||||
|
Reference in New Issue
Block a user