mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
parent
2259f747f1
commit
82d68f5b98
@ -194,10 +194,11 @@ QByteArray SerializeText(
|
||||
: (part.type == Type::TextUrl)
|
||||
? "href"
|
||||
: "none";
|
||||
const auto additionalValue = (part.type == Type::MentionName
|
||||
|| part.type == Type::CustomEmoji)
|
||||
const auto additionalValue = (part.type == Type::MentionName)
|
||||
? 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)
|
||||
: QByteArray();
|
||||
return SerializeObject(context, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user