2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix creating a scheduled voice chat.

This commit is contained in:
John Preston
2021-04-12 15:36:19 +04:00
parent 99501d844d
commit e5ac7a1416
9 changed files with 55 additions and 34 deletions

View File

@@ -194,7 +194,9 @@ void ChatData::setMigrateToChannel(ChannelData *channel) {
}
}
void ChatData::setGroupCall(const MTPInputGroupCall &call) {
void ChatData::setGroupCall(
const MTPInputGroupCall &call,
TimeId scheduleDate) {
if (migrateTo()) {
return;
}
@@ -214,7 +216,8 @@ void ChatData::setGroupCall(const MTPInputGroupCall &call) {
_call = std::make_unique<Data::GroupCall>(
this,
data.vid().v,
data.vaccess_hash().v);
data.vaccess_hash().v,
scheduleDate);
owner().registerGroupCall(_call.get());
session().changes().peerUpdated(this, UpdateFlag::GroupCall);
addFlags(MTPDchat::Flag::f_call_active);