Correctly show legacy groups with no admins.
This commit is contained in:
		
							parent
							
								
									0709bc6d70
								
							
						
					
					
						commit
						2af63ec48f
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1212,6 +1212,9 @@ void ParticipantsBoxController::rebuildChatAdmins(
 | 
			
		|||
		return true;
 | 
			
		||||
	}();
 | 
			
		||||
	if (same) {
 | 
			
		||||
		if (!_allLoaded && !delegate()->peerListFullRowsCount()) {
 | 
			
		||||
			chatListReady();
 | 
			
		||||
		}
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -247,7 +247,7 @@ rpl::producer<int> AdminsCountValue(not_null<PeerData*> peer) {
 | 
			
		|||
		) | rpl::map([=] {
 | 
			
		||||
			return chat->participants.empty()
 | 
			
		||||
				? 0
 | 
			
		||||
				: int(chat->admins.size() + 1); // + creator
 | 
			
		||||
				: int(chat->admins.size() + (chat->creator ? 1 : 0));
 | 
			
		||||
		});
 | 
			
		||||
	} else if (const auto channel = peer->asChannel()) {
 | 
			
		||||
		return peer->session().changes().peerFlagsValue(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue