summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
committertrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
commitc73cfe181006fe3be8a3f141acda5c8a1318e47a (patch)
tree5232569c34b91653e2fe0e4220e42bd8d3196303 /src/ChatPage.cpp
parentSupport voice calls (diff)
parentFix autolinking breaking on single quotes in href attribute (diff)
downloadnheko-c73cfe181006fe3be8a3f141acda5c8a1318e47a.tar.xz
Merge remote-tracking branch 'upstream/master' into voip
Diffstat (limited to '')
-rw-r--r--src/ChatPage.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 1bea8564..c83ce350 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -589,8 +589,12 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) emit notificationsRetrieved(std::move(res)); }); }); - connect(this, &ChatPage::syncRoomlist, room_list_, &RoomList::sync); - connect(this, &ChatPage::syncTags, communitiesList_, &CommunitiesList::syncTags); + connect(this, &ChatPage::syncRoomlist, room_list_, &RoomList::sync, Qt::QueuedConnection); + connect(this, + &ChatPage::syncTags, + communitiesList_, + &CommunitiesList::syncTags, + Qt::QueuedConnection); connect( this, &ChatPage::syncTopBar, this, [this](const std::map<QString, RoomInfo> &updates) { if (updates.find(currentRoom()) != updates.end()) @@ -605,11 +609,15 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) user_info_widget_->setDisplayName(name); }); - connect(this, &ChatPage::tryInitialSyncCb, this, &ChatPage::tryInitialSync); - connect(this, &ChatPage::trySyncCb, this, &ChatPage::trySync); - connect(this, &ChatPage::tryDelayedSyncCb, this, [this]() { - QTimer::singleShot(RETRY_TIMEOUT, this, &ChatPage::trySync); - }); + connect( + this, &ChatPage::tryInitialSyncCb, this, &ChatPage::tryInitialSync, Qt::QueuedConnection); + connect(this, &ChatPage::trySyncCb, this, &ChatPage::trySync, Qt::QueuedConnection); + connect( + this, + &ChatPage::tryDelayedSyncCb, + this, + [this]() { QTimer::singleShot(RETRY_TIMEOUT, this, &ChatPage::trySync); }, + Qt::QueuedConnection); connect(this, &ChatPage::dropToLoginPageCb, this, &ChatPage::dropToLoginPage);