mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Correctly host rich message in the item.
This commit is contained in:
@@ -43,6 +43,11 @@ struct FileReferenceAccumulator {
|
||||
push(data.data().vphotos());
|
||||
push(data.data().vdocuments());
|
||||
}
|
||||
void push(const MTPRichMessage &data) {
|
||||
const auto &fields = data.data();
|
||||
push(fields.vphotos());
|
||||
push(fields.vdocuments());
|
||||
}
|
||||
void push(const MTPWallPaper &data) {
|
||||
data.match([&](const MTPDwallPaper &data) {
|
||||
push(data.vdocument());
|
||||
@@ -142,6 +147,7 @@ struct FileReferenceAccumulator {
|
||||
data.match([&](const MTPDmessage &data) {
|
||||
push(data.vmedia());
|
||||
push(data.vreply_to());
|
||||
push(data.vrich_message());
|
||||
}, [&](const MTPDmessageService &data) {
|
||||
data.vaction().match(
|
||||
[&](const MTPDmessageActionChatEditPhoto &data) {
|
||||
|
||||
Reference in New Issue
Block a user