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

Update API scheme to layer 119. Count replies.

This commit is contained in:
John Preston
2020-09-01 10:44:18 +04:00
parent fcdc4cd465
commit 55edb3bdfe
54 changed files with 973 additions and 583 deletions

View File

@@ -1604,7 +1604,9 @@ MediaData HtmlWriter::Wrap::prepareMediaData(
const auto &action = message.action;
if (const auto call = base::get_if<ActionPhoneCall>(&action.content)) {
result.classes = "media_call";
result.title = peers.peer(message.toId).name();
result.title = peers.peer(message.out
? message.peerId
: message.selfId).name();
result.status = [&] {
using Reason = ActionPhoneCall::DiscardReason;
const auto reason = call->discardReason;