parent
ac4c9e024e
commit
d9dd4a3934
@ -529,11 +529,12 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven
|
|||||||
|
|
||||||
std::visit(
|
std::visit(
|
||||||
[room](auto e) {
|
[room](auto e) {
|
||||||
if constexpr (mtx::events::message_content_to_type<decltype(e.content)> ==
|
constexpr auto type = mtx::events::message_content_to_type<decltype(e.content)>;
|
||||||
mtx::events::EventType::RoomMessage) {
|
if constexpr (type == mtx::events::EventType::RoomMessage ||
|
||||||
|
type == mtx::events::EventType::Sticker) {
|
||||||
e.content.relations.relations.clear();
|
e.content.relations.relations.clear();
|
||||||
removeReplyFallback(e);
|
removeReplyFallback(e);
|
||||||
room->sendMessageEvent(e.content, mtx::events::EventType::RoomMessage);
|
room->sendMessageEvent(e.content, type);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
*e);
|
*e);
|
||||||
|
Loading…
Reference in New Issue
Block a user