mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support legacy groups in participant boxes.
This commit is contained in:
@@ -435,14 +435,15 @@ void PeerData::fillNames() {
|
||||
PeerData::~PeerData() = default;
|
||||
|
||||
void PeerData::updateFull() {
|
||||
if (!_lastFullUpdate || getms(true) > _lastFullUpdate + kUpdateFullPeerTimeout) {
|
||||
if (!_lastFullUpdate
|
||||
|| getms(true) > _lastFullUpdate + kUpdateFullPeerTimeout) {
|
||||
updateFullForced();
|
||||
}
|
||||
}
|
||||
|
||||
void PeerData::updateFullForced() {
|
||||
session().api().requestFullPeer(this);
|
||||
if (auto channel = asChannel()) {
|
||||
if (const auto channel = asChannel()) {
|
||||
if (!channel->amCreator() && !channel->inviter) {
|
||||
session().api().requestSelfParticipant(channel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user