mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
redrawHistoryItem moved to Ui, shared contact updates when is_contact changes
This commit is contained in:
@@ -91,10 +91,20 @@ namespace Ui {
|
||||
return false;
|
||||
}
|
||||
|
||||
void redrawHistoryItem(const HistoryItem *item) {
|
||||
if (MainWidget *m = App::main()) m->ui_redrawHistoryItem(item);
|
||||
}
|
||||
|
||||
void showPeerHistory(const PeerId &peer, MsgId msgId, bool back) {
|
||||
if (MainWidget *m = App::main()) m->showPeerHistory(peer, msgId, back);
|
||||
}
|
||||
|
||||
void showPeerHistoryAsync(const PeerId &peer, MsgId msgId) {
|
||||
if (MainWidget *m = App::main()) {
|
||||
QMetaObject::invokeMethod(m, SLOT(ui_showPeerHistoryAsync(quint64,qint32)), Qt::QueuedConnection, Q_ARG(quint64, peer), Q_ARG(qint32, msgId));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Notify {
|
||||
@@ -103,6 +113,10 @@ namespace Notify {
|
||||
if (MainWidget *m = App::main()) m->notify_userIsBotChanged(user);
|
||||
}
|
||||
|
||||
void userIsContactChanged(UserData *user, bool fromThisApp) {
|
||||
if (MainWidget *m = App::main()) m->notify_userIsContactChanged(user, fromThisApp);
|
||||
}
|
||||
|
||||
void botCommandsChanged(UserData *user) {
|
||||
if (MainWidget *m = App::main()) m->notify_botCommandsChanged(user);
|
||||
}
|
||||
@@ -111,10 +125,6 @@ namespace Notify {
|
||||
if (MainWidget *m = App::main()) m->notify_migrateUpdated(peer);
|
||||
}
|
||||
|
||||
void redrawHistoryItem(const HistoryItem *item) {
|
||||
if (MainWidget *m = App::main()) m->notify_redrawHistoryItem(item);
|
||||
}
|
||||
|
||||
void historyItemLayoutChanged(const HistoryItem *item) {
|
||||
if (MainWidget *m = App::main()) m->notify_historyItemLayoutChanged(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user