mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-27 16:03:03 +02:00
Fix setting group emoji status.
This commit is contained in:
parent
11986ac698
commit
3cfdc9d897
1 changed files with 8 additions and 8 deletions
|
@ -574,15 +574,15 @@ void Set(
|
||||||
MTP_flags(Flag::f_color | Flag::f_background_emoji_id),
|
MTP_flags(Flag::f_color | Flag::f_background_emoji_id),
|
||||||
MTP_int(values.colorIndex),
|
MTP_int(values.colorIndex),
|
||||||
MTP_long(values.backgroundEmojiId)));
|
MTP_long(values.backgroundEmojiId)));
|
||||||
} else if (peer->isMegagroup()) {
|
|
||||||
} else if (const auto channel = peer->asChannel()) {
|
} else if (const auto channel = peer->asChannel()) {
|
||||||
|
if (peer->isBroadcast()) {
|
||||||
using Flag = MTPchannels_UpdateColor::Flag;
|
using Flag = MTPchannels_UpdateColor::Flag;
|
||||||
send(MTPchannels_UpdateColor(
|
send(MTPchannels_UpdateColor(
|
||||||
MTP_flags(Flag::f_color | Flag::f_background_emoji_id),
|
MTP_flags(Flag::f_color | Flag::f_background_emoji_id),
|
||||||
channel->inputChannel,
|
channel->inputChannel,
|
||||||
MTP_int(values.colorIndex),
|
MTP_int(values.colorIndex),
|
||||||
MTP_long(values.backgroundEmojiId)));
|
MTP_long(values.backgroundEmojiId)));
|
||||||
|
}
|
||||||
if (values.statusChanged
|
if (values.statusChanged
|
||||||
&& (values.statusId || peer->emojiStatusId())) {
|
&& (values.statusId || peer->emojiStatusId())) {
|
||||||
peer->owner().emojiStatuses().set(
|
peer->owner().emojiStatuses().set(
|
||||||
|
|
Loading…
Add table
Reference in a new issue