Fix unread badges for new dialogs.
This commit is contained in:
		
							parent
							
								
									3e3696298f
								
							
						
					
					
						commit
						b5ad3e7724
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2731,7 +2731,7 @@ void History::applyDialogFields(
 | 
				
			||||||
		clearFolder();
 | 
							clearFolder();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (!skipUnreadUpdate()
 | 
						if (!skipUnreadUpdate()
 | 
				
			||||||
		&& maxInboxRead >= _inboxReadBefore.value_or(1)) {
 | 
							&& maxInboxRead + 1 >= _inboxReadBefore.value_or(1)) {
 | 
				
			||||||
		setUnreadCount(unreadCount);
 | 
							setUnreadCount(unreadCount);
 | 
				
			||||||
		setInboxReadTill(maxInboxRead);
 | 
							setInboxReadTill(maxInboxRead);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue