Update mtxclient commit hash

This commit is contained in:
Loren Burkholder 2023-04-08 19:08:11 -04:00 committed by Nicolas Werner
parent 138b0a6b86
commit bdee662bbd
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 3 additions and 4 deletions

View file

@ -602,7 +602,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare(
MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG f8a9cbbb25ea145a23506c2f9386f6c61401bed0
GIT_TAG dd2bdbd104ae8f70f82da9ff7b4b60007fc105c3
)
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")

View file

@ -213,7 +213,7 @@ modules:
buildsystem: cmake-ninja
name: mtxclient
sources:
- commit: f8a9cbbb25ea145a23506c2f9386f6c61401bed0
- commit: dd2bdbd104ae8f70f82da9ff7b4b60007fc105c3
#tag: v0.9.2
type: git
url: https://github.com/Nheko-Reborn/mtxclient.git

View file

@ -2974,8 +2974,7 @@ TimelineModel::setEdit(const QString &newEdit)
if (msgType == mtx::events::MessageType::Emote)
input()->setText("/me " + editText);
else if (msgType == mtx::events::MessageType::ElementEffect)
{
else if (msgType == mtx::events::MessageType::ElementEffect) {
auto u =
std::get_if<mtx::events::RoomEvent<mtx::events::msg::ElementEffect>>(&e);
auto msgtypeString = u ? u->content.msgtype : "";