| 1055 | } |
| 1056 | |
| 1057 | void ChannelData::privateErrorReceived() { |
| 1058 | if (invitePeekExpires()) { |
| 1059 | const auto hash = invitePeekHash(); |
| 1060 | for (const auto &window : session().windows()) { |
| 1061 | clearInvitePeek(); |
| 1062 | Api::CheckChatInvite(window, hash, this); |
| 1063 | return; |
| 1064 | } |
| 1065 | _invitePeek->expires = base::unixtime::now(); |
| 1066 | } else { |
| 1067 | markForbidden(); |
| 1068 | } |
| 1069 | } |
| 1070 | |
| 1071 | void ChannelData::migrateCall(std::unique_ptr<Data::GroupCall> call) { |
| 1072 | Expects(_call == nullptr); |
no test coverage detected