Fix replying and editing stickers
This commit is contained in:
parent
9a950c7f0e
commit
3b56ff2d85
@ -515,6 +515,15 @@ InputBar::sticker(ImagePackModel *model, int row)
|
||||
sticker.url = img.url;
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user