mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
2259f747f1
commit
82d68f5b98
1 changed files with 4 additions and 3 deletions
|
@ -194,10 +194,11 @@ QByteArray SerializeText(
|
||||||
: (part.type == Type::TextUrl)
|
: (part.type == Type::TextUrl)
|
||||||
? "href"
|
? "href"
|
||||||
: "none";
|
: "none";
|
||||||
const auto additionalValue = (part.type == Type::MentionName
|
const auto additionalValue = (part.type == Type::MentionName)
|
||||||
|| part.type == Type::CustomEmoji)
|
|
||||||
? part.additional
|
? part.additional
|
||||||
: (part.type == Type::Pre || part.type == Type::TextUrl)
|
: (part.type == Type::Pre
|
||||||
|
|| part.type == Type::TextUrl
|
||||||
|
|| part.type == Type::CustomEmoji)
|
||||||
? SerializeString(part.additional)
|
? SerializeString(part.additional)
|
||||||
: QByteArray();
|
: QByteArray();
|
||||||
return SerializeObject(context, {
|
return SerializeObject(context, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue