mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 07:20:38 +00:00
Update to 7.0.1 (2065)
This commit is contained in:
parent
4c5f32babf
commit
e33a2fbedc
48 changed files with 557 additions and 251 deletions
|
|
@ -3187,8 +3187,14 @@ public class NotificationsController extends BaseController {
|
|||
int selfUserId = getUserConfig().getClientUserId();
|
||||
boolean waitingForPasscode = AndroidUtilities.needShowPasscode() || SharedConfig.isWaitingForPasscodeEnter;
|
||||
|
||||
int maxCount;
|
||||
if (UserConfig.getActivatedAccountsCount() >= 3) {
|
||||
maxCount = 7;
|
||||
} else {
|
||||
maxCount = 10;
|
||||
}
|
||||
for (int b = 0, size = sortedDialogs.size(); b < size; b++) {
|
||||
if (holders.size() >= 15) {
|
||||
if (holders.size() >= maxCount) {
|
||||
break;
|
||||
}
|
||||
long dialog_id = sortedDialogs.get(b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue