diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-09 21:47:03 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-09 21:47:03 +0100 |
commit | 34ebd2b30ee5ee792f0589642ff9832afb9dc3fc (patch) | |
tree | f9b33b4cd7e215235d892e26863700979f65e51e /src | |
parent | Get rid of useless capture (diff) | |
download | nheko-34ebd2b30ee5ee792f0589642ff9832afb9dc3fc.tar.xz |
Fix call only ringing the second time
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/RoomlistModel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp index 5ea6f8c8..cdaa02ec 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp @@ -528,14 +528,15 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_) // addRoom will only add the room, if it doesn't exist addRoom(qroomid); const auto &room_model = models.value(qroomid); - room_model->sync(room); - // room_model->addEvents(room.timeline); + connect(room_model.data(), &TimelineModel::newCallEvent, ChatPage::instance()->callManager(), &CallManager::syncEvent, Qt::UniqueConnection); + room_model->sync(room); + if (ChatPage::instance()->userSettings()->typingNotifications()) { for (const auto &ev : room.ephemeral.events) { if (auto t = |