Skip to content
Snippets Groups Projects
Verified Commit 3b56ff2d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix replying and editing stickers

parent 9a950c7f
No related branches found
No related tags found
No related merge requests found
Pipeline #1407 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment