| 188 | } |
| 189 | |
| 190 | auto ChatData::applyUpdateVersion(int version) -> UpdateStatus { |
| 191 | if (_version > version) { |
| 192 | return UpdateStatus::TooOld; |
| 193 | } else if (_version + 1 < version) { |
| 194 | invalidateParticipants(); |
| 195 | session().api().requestFullPeer(this); |
| 196 | return UpdateStatus::Skipped; |
| 197 | } |
| 198 | setVersion(version); |
| 199 | return UpdateStatus::Good; |
| 200 | } |
| 201 | |
| 202 | ChannelData *ChatData::getMigrateToChannel() const { |
| 203 | return _migratedTo; |
no test coverage detected