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

Alpha version 0.10.22: critical bug fixes.

This commit is contained in:
John Preston
2016-12-31 17:34:41 +04:00
parent bc0c355d2d
commit 218f991547
42 changed files with 634 additions and 212 deletions

View File

@@ -1887,6 +1887,23 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
prepareGameScoreText(from, &text, &links);
} break;
case mtpc_messageActionPhoneCall: {
auto &d = action.c_messageActionPhoneCall();
if (d.has_reason()) {
switch (d.vreason.type()) {
case mtpc_phoneCallDiscardReasonBusy: break;
case mtpc_phoneCallDiscardReasonDisconnect: break;
case mtpc_phoneCallDiscardReasonHangup: break;
case mtpc_phoneCallDiscardReasonMissed: break;
}
} else {
}
if (d.has_duration()) {
d.vduration.v;
}
} break;
default: from = QString(); break;
}