diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java index 5c38fcc7f1..f0bd4fa1af 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java @@ -578,9 +578,9 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) { sendMediaExpanded = !sendMediaExpanded; updateRows(false); if (sendMediaExpanded) { - listViewAdapter.notifyItemRangeInserted(sendMediaRow + 1, 9); + listViewAdapter.notifyItemRangeInserted(sendMediaRow + 1, 12); } else { - listViewAdapter.notifyItemRangeRemoved(sendMediaRow + 1, 9); + listViewAdapter.notifyItemRangeRemoved(sendMediaRow + 1, 12); } return; } else if (position == channelMessagesRow) { @@ -2150,6 +2150,15 @@ private int getSendMediaSelectedCount() { if (!bannedRights.send_polls && !defaultBannedRights.send_polls) { i++; } + if (!bannedRights.send_gifs && !defaultBannedRights.send_gifs) { + i++; + } + if (!bannedRights.send_games && !defaultBannedRights.send_games) { + i++; + } + if (!bannedRights.send_inline && !defaultBannedRights.send_inline) { + i++; + } return i; }