mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Save item views in App::*Item() variables.
Also remove App::contextItem. Also use owning pointers for history context menus.
This commit is contained in:
@@ -168,8 +168,9 @@ public:
|
||||
|
||||
void showForwardLayer(MessageIdsList &&items);
|
||||
void showSendPathsLayer();
|
||||
void deleteLayer(int selectedCount = 0); // 0 - context item
|
||||
void cancelUploadLayer();
|
||||
void deleteLayer(MessageIdsList &&items);
|
||||
void deleteLayer(FullMsgId itemId);
|
||||
void cancelUploadLayer(not_null<HistoryItem*> item);
|
||||
void shareUrlLayer(const QString &url, const QString &text);
|
||||
void inlineSwitchLayer(const QString &botAndQuery);
|
||||
void hiderLayer(object_ptr<HistoryHider> h);
|
||||
@@ -272,7 +273,7 @@ public:
|
||||
void messageDataReceived(ChannelData *channel, MsgId msgId);
|
||||
void updateBotKeyboard(History *h);
|
||||
|
||||
void pushReplyReturn(HistoryItem *item);
|
||||
void pushReplyReturn(not_null<HistoryItem*> item);
|
||||
|
||||
void cancelForwarding(not_null<History*> history);
|
||||
void finishForwarding(not_null<History*> history);
|
||||
|
Reference in New Issue
Block a user