mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Toggle calls controls using config and user flags.
Also use calls timeout values from config. Also request config each time when the auth session changes.
This commit is contained in:
@@ -578,6 +578,17 @@ void UserData::setBlockStatus(BlockStatus blockStatus) {
|
||||
}
|
||||
}
|
||||
|
||||
void UserData::setCallsStatus(CallsStatus callsStatus) {
|
||||
if (callsStatus != _callsStatus) {
|
||||
_callsStatus = callsStatus;
|
||||
Notify::peerUpdatedDelayed(this, UpdateFlag::UserHasCalls);
|
||||
}
|
||||
}
|
||||
|
||||
bool UserData::hasCalls() const {
|
||||
return (callsStatus() != CallsStatus::Disabled) && (callsStatus() != CallsStatus::Unknown);
|
||||
}
|
||||
|
||||
void ChatData::setPhoto(const MTPChatPhoto &p, const PhotoId &phId) { // see Local::readPeer as well
|
||||
PhotoId newPhotoId = photoId;
|
||||
ImagePtr newPhoto = _userpic;
|
||||
|
Reference in New Issue
Block a user