mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 22:28:49 +03:00
Fix replying and editing stickers
This commit is contained in:
parent
9a950c7f0e
commit
3b56ff2d85
1 changed files with 9 additions and 0 deletions
|
@ -515,6 +515,15 @@ InputBar::sticker(ImagePackModel *model, int row)
|
||||||
sticker.url = img.url;
|
sticker.url = img.url;
|
||||||
sticker.body = img.body;
|
sticker.body = img.body;
|
||||||
|
|
||||||
|
if (!room->reply().isEmpty()) {
|
||||||
|
sticker.relations.relations.push_back(
|
||||||
|
{mtx::common::RelationType::InReplyTo, room->reply().toStdString()});
|
||||||
|
}
|
||||||
|
if (!room->edit().isEmpty()) {
|
||||||
|
sticker.relations.relations.push_back(
|
||||||
|
{mtx::common::RelationType::Replace, room->edit().toStdString()});
|
||||||
|
}
|
||||||
|
|
||||||
room->sendMessageEvent(sticker, mtx::events::EventType::Sticker);
|
room->sendMessageEvent(sticker, mtx::events::EventType::Sticker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue