diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ca7e5c8..026e3c4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -581,7 +581,7 @@ if(USE_BUNDLED_MTXCLIENT) FetchContent_Declare( MatrixClient GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git - GIT_TAG 6f908f379c6d7afb6117baee3a59c6f5e3adfdda + GIT_TAG c2824dae5050882872a6c3f5677f3309a60511be ) set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "") set(BUILD_LIB_TESTS OFF CACHE INTERNAL "") diff --git a/io.github.NhekoReborn.Nheko.yaml b/io.github.NhekoReborn.Nheko.yaml index 25dc4e94..879043b2 100644 --- a/io.github.NhekoReborn.Nheko.yaml +++ b/io.github.NhekoReborn.Nheko.yaml @@ -203,7 +203,7 @@ modules: buildsystem: cmake-ninja name: mtxclient sources: - - commit: 6f908f379c6d7afb6117baee3a59c6f5e3adfdda + - commit: c2824dae5050882872a6c3f5677f3309a60511be #tag: v0.7.0 type: git url: https://github.com/Nheko-Reborn/mtxclient.git diff --git a/src/Cache.cpp b/src/Cache.cpp index c9baaf5e..79a5ea04 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1639,18 +1639,18 @@ isMessage(const mtx::events::EncryptedEvent &) } auto -isMessage(const mtx::events::RoomEvent &) +isMessage(const mtx::events::RoomEvent &) { return true; } auto -isMessage(const mtx::events::RoomEvent &) +isMessage(const mtx::events::RoomEvent &) { return true; } auto -isMessage(const mtx::events::RoomEvent &) +isMessage(const mtx::events::RoomEvent &) { return true; } diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 56be6460..baab28d1 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -247,10 +247,10 @@ ChatPage::ChatPage(QSharedPointer userSettings, QObject *parent) }, Qt::QueuedConnection); - connectCallMessage(); - connectCallMessage(); - connectCallMessage(); - connectCallMessage(); + connectCallMessage(); + connectCallMessage(); + connectCallMessage(); + connectCallMessage(); } void diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp index e4dfe92e..659338a0 100644 --- a/src/EventAccessors.cpp +++ b/src/EventAccessors.cpp @@ -75,9 +75,9 @@ struct CallType template std::string operator()(const T &e) { - if constexpr (std::is_same_v, T>) { + if constexpr (std::is_same_v, T>) { const char video[] = "m=video"; - const std::string &sdp = e.content.sdp; + const std::string &sdp = e.content.offer.sdp; return std::search(sdp.cbegin(), sdp.cend(), std::cbegin(video), diff --git a/src/Utils.cpp b/src/Utils.cpp index 0ac37d8e..bdc1a411 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -209,9 +209,9 @@ utils::getMessageDescription(const TimelineEvent &event, using Notice = mtx::events::RoomEvent; using Text = mtx::events::RoomEvent; using Video = mtx::events::RoomEvent; - using CallInvite = mtx::events::RoomEvent; - using CallAnswer = mtx::events::RoomEvent; - using CallHangUp = mtx::events::RoomEvent; + using CallInvite = mtx::events::RoomEvent; + using CallAnswer = mtx::events::RoomEvent; + using CallHangUp = mtx::events::RoomEvent; using Encrypted = mtx::events::EncryptedEvent; if (std::holds_alternative