mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
enable contacts button without checking for polls permission
This commit is contained in:
parent
368822d20f
commit
8c713931cd
1 changed files with 1 additions and 6 deletions
|
@ -2781,16 +2781,11 @@ public class ChatAttachAlert extends BottomSheet implements NotificationCenter.N
|
|||
locationButton = buttonsCount++;
|
||||
if (pollsEnabled) {
|
||||
pollButton = buttonsCount++;
|
||||
} else {
|
||||
contactButton = buttonsCount++;
|
||||
}
|
||||
contactButton = buttonsCount++;
|
||||
if (mediaEnabled) {
|
||||
musicButton = buttonsCount++;
|
||||
}
|
||||
TLRPC.User user = baseFragment instanceof ChatActivity ? ((ChatActivity) baseFragment).getCurrentUser() : null;
|
||||
if (user != null && user.bot) {
|
||||
contactButton = buttonsCount++;
|
||||
}
|
||||
}
|
||||
super.notifyDataSetChanged();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue