diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 0d5f788b..ff7679cb 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -529,11 +529,12 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven std::visit( [room](auto e) { - if constexpr (mtx::events::message_content_to_type == - mtx::events::EventType::RoomMessage) { + constexpr auto type = mtx::events::message_content_to_type; + if constexpr (type == mtx::events::EventType::RoomMessage || + type == mtx::events::EventType::Sticker) { e.content.relations.relations.clear(); removeReplyFallback(e); - room->sendMessageEvent(e.content, mtx::events::EventType::RoomMessage); + room->sendMessageEvent(e.content, type); } }, *e);