mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Disable 'Stickers and GIF' for the moment.
This commit is contained in:
@@ -16,7 +16,7 @@ public class NotificationCenter {
|
||||
|
||||
private static int totalEvents = 1;
|
||||
|
||||
public static final int didReceivedNewMessages = totalEvents++;
|
||||
public static final int didReceivedNewMessages = totalEvents++; // I'm not sure if Telegram uses the resulting codes here and there, so better leave the values alone
|
||||
public static final int updateInterfaces = totalEvents++;
|
||||
public static final int dialogsNeedReload = totalEvents++;
|
||||
public static final int closeChats = totalEvents++;
|
||||
|
||||
@@ -2276,7 +2276,10 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
chatActivityEnterView.addToAttachLayout(menuItem);
|
||||
chatActivityEnterView.setId(id_chat_compose_panel);
|
||||
//chatActivityEnterView.setBotsCount(botsCount, hasBotsCommands);
|
||||
chatActivityEnterView.setAllowStickersAndGifs(currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 23, currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 46);
|
||||
|
||||
//chatActivityEnterView.setAllowStickersAndGifs(currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 23, currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 46);
|
||||
chatActivityEnterView.setAllowStickersAndGifs(false, false); // for the moment, LibreChat has no stickers
|
||||
|
||||
contentView.addView(chatActivityEnterView, contentView.getChildCount() - 1, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT, Gravity.LEFT | Gravity.BOTTOM));
|
||||
chatActivityEnterView.setDelegate(new ChatActivityEnterView.ChatActivityEnterViewDelegate() {
|
||||
@Override
|
||||
@@ -5867,12 +5870,12 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
if (avatarContainer != null) {
|
||||
avatarContainer.updateSubtitle();
|
||||
}
|
||||
} else if (id == NotificationCenter.encryptedChatUpdated) {
|
||||
/*} else if (id == NotificationCenter.encryptedChatUpdated) {
|
||||
TLRPC.EncryptedChat chat = (TLRPC.EncryptedChat) args[0];
|
||||
if (currentEncryptedChat != null && chat.id == currentEncryptedChat.id) {
|
||||
currentEncryptedChat = chat;
|
||||
updateContactStatus();
|
||||
//updateSecretStatus(); -- EDIT BY MR
|
||||
updateSecretStatus();
|
||||
initStickers();
|
||||
if (chatActivityEnterView != null) {
|
||||
chatActivityEnterView.setAllowStickersAndGifs(currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 23, currentEncryptedChat == null || AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) >= 46);
|
||||
@@ -5896,7 +5899,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
}
|
||||
}
|
||||
updateVisibleRows();
|
||||
}
|
||||
}*/
|
||||
} else if (id == NotificationCenter.audioDidReset || id == NotificationCenter.audioPlayStateChanged) {
|
||||
if (chatListView != null) {
|
||||
int count = chatListView.getChildCount();
|
||||
|
||||
Reference in New Issue
Block a user