summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authortargetakhil <targetakhil@gmail.com>2021-04-22 08:19:27 +0530
committertargetakhil <targetakhil@gmail.com>2021-04-22 11:06:19 +0530
commitddb1983c639be10c7e151ddcb2554076eceb9b78 (patch)
tree68ef9cbda5ee3b5f9544a9c746d225d7d3271362 /src/timeline/TimelineViewManager.cpp
parentmake util strip util functions non-static and move definition to cpp file (diff)
downloadnheko-ddb1983c639be10c7e151ddcb2554076eceb9b78.tar.xz
fix macos build error
Diffstat (limited to 'src/timeline/TimelineViewManager.cpp')
-rw-r--r--src/timeline/TimelineViewManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index ff759625..d89f4a1b 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -632,9 +632,8 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven const std::string &content_type, const std::string &originalFilename, mtx::http::RequestErr err) { - if (err) { + if (err) return; - } auto data = mtx::crypto::to_string( mtx::crypto::decrypt_file(res, encryptionInfo.value())); @@ -654,7 +653,7 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven } std::visit( - [this, roomId, e, url = res.content_uri](auto ev) { + [this, roomId, url = res.content_uri](auto ev) { if constexpr (mtx::events::message_content_to_type< decltype(ev.content)> == mtx::events::EventType::RoomMessage) {