2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve scheduled voice chat top bar design.

This commit is contained in:
John Preston
2021-04-06 13:59:14 +04:00
parent 088fda4ed8
commit 66e7f05df1
12 changed files with 260 additions and 55 deletions

View File

@@ -1025,12 +1025,15 @@ void History::applyServiceChanges(
}
} break;
case mtpc_messageActionGroupCall: {
const auto &d = action.c_messageActionGroupCall();
case mtpc_messageActionGroupCall:
case mtpc_messageActionGroupCallScheduled: {
const auto &call = (action.type() == mtpc_messageActionGroupCall)
? action.c_messageActionGroupCall().vcall()
: action.c_messageActionGroupCallScheduled().vcall();
if (const auto channel = peer->asChannel()) {
channel->setGroupCall(d.vcall());
channel->setGroupCall(call);
} else if (const auto chat = peer->asChat()) {
chat->setGroupCall(d.vcall());
chat->setGroupCall(call);
}
} break;
}