mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
parent
ac4c9e024e
commit
d9dd4a3934
1 changed files with 4 additions and 3 deletions
|
@ -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 a new issue