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

Inform about join request being sent.

This commit is contained in:
John Preston
2021-10-12 16:50:18 +04:00
parent 3af3f85f82
commit 9e05e44a14
27 changed files with 197 additions and 126 deletions

View File

@@ -348,7 +348,7 @@ PeerData *Session::peerLoaded(PeerId id) const {
const auto i = _peers.find(id);
if (i == end(_peers)) {
return nullptr;
} else if (!i->second->isFullLoaded()) {
} else if (!i->second->isLoaded()) {
return nullptr;
}
return i->second.get();
@@ -556,9 +556,9 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
if (!result->isMinimalLoaded()) {
result->setLoadedStatus(PeerData::LoadedStatus::Minimal);
}
} else if (!result->isFullLoaded()
} else if (!result->isLoaded()
&& (!result->isSelf() || !result->phone().isEmpty())) {
result->setLoadedStatus(PeerData::LoadedStatus::Full);
result->setLoadedStatus(PeerData::LoadedStatus::Normal);
}
if (status && !minimal) {
@@ -680,7 +680,7 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
const auto channel = result->asChannel();
minimal = data.is_min();
if (minimal && !result->isFullLoaded()) {
if (minimal && !result->isLoaded()) {
LOG(("API Warning: not loaded minimal channel applied."));
}
@@ -825,8 +825,8 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
if (!result->isMinimalLoaded()) {
result->setLoadedStatus(PeerData::LoadedStatus::Minimal);
}
} else if (!result->isFullLoaded()) {
result->setLoadedStatus(PeerData::LoadedStatus::Full);
} else if (!result->isLoaded()) {
result->setLoadedStatus(PeerData::LoadedStatus::Normal);
}
if (flags) {
session().changes().peerUpdated(result, flags);
@@ -1171,7 +1171,7 @@ void Session::setupUserIsContactViewer() {
requestViewResize(view);
}
}
if (!user->isFullLoaded()) {
if (!user->isLoaded()) {
LOG(("API Error: "
"userIsContactChanged() called for a not loaded user!"));
return;