enable contacts button without checking for polls permission

This commit is contained in:
Ivan Martinez 2021-09-15 16:54:28 -03:00
parent 368822d20f
commit 8c713931cd

View file

@ -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();
}