summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 37449980..b5c8d3b4 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -95,6 +95,12 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent) return; } + // only update spaces every 20 minutes + if (lastSpacesUpdate < QDateTime::currentDateTime().addSecs(-20 * 60)) { + lastSpacesUpdate = QDateTime::currentDateTime(); + utils::updateSpaceVias(); + } + if (!isConnected_) emit connectionRestored(); }); @@ -380,6 +386,13 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent) }, Qt::QueuedConnection); + connect( + this, + &ChatPage::callFunctionOnGuiThread, + this, + [](std::function<void()> f) { f(); }, + Qt::QueuedConnection); + connectCallMessage<mtx::events::voip::CallInvite>(); connectCallMessage<mtx::events::voip::CallCandidates>(); connectCallMessage<mtx::events::voip::CallAnswer>();