mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-03-28 09:07:24 +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++;
|
locationButton = buttonsCount++;
|
||||||
if (pollsEnabled) {
|
if (pollsEnabled) {
|
||||||
pollButton = buttonsCount++;
|
pollButton = buttonsCount++;
|
||||||
} else {
|
|
||||||
contactButton = buttonsCount++;
|
|
||||||
}
|
}
|
||||||
|
contactButton = buttonsCount++;
|
||||||
if (mediaEnabled) {
|
if (mediaEnabled) {
|
||||||
musicButton = buttonsCount++;
|
musicButton = buttonsCount++;
|
||||||
}
|
}
|
||||||
TLRPC.User user = baseFragment instanceof ChatActivity ? ((ChatActivity) baseFragment).getCurrentUser() : null;
|
|
||||||
if (user != null && user.bot) {
|
|
||||||
contactButton = buttonsCount++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
super.notifyDataSetChanged();
|
super.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue