From db320be3f098c02adb5b420d6596041b622aa746 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 13 Sep 2019 09:22:36 +1000 Subject: [PATCH] Debug moderator tags --- res/layout/conversation_item_received.xml | 5 +++-- .../securesms/conversation/ConversationItem.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/res/layout/conversation_item_received.xml b/res/layout/conversation_item_received.xml index 7b6f21f13d..62d48b1787 100644 --- a/res/layout/conversation_item_received.xml +++ b/res/layout/conversation_item_received.xml @@ -41,8 +41,9 @@ diff --git a/src/org/thoughtcrime/securesms/conversation/ConversationItem.java b/src/org/thoughtcrime/securesms/conversation/ConversationItem.java index 350f2fe6e0..fe227250d6 100644 --- a/src/org/thoughtcrime/securesms/conversation/ConversationItem.java +++ b/src/org/thoughtcrime/securesms/conversation/ConversationItem.java @@ -936,7 +936,7 @@ public class ConversationItem extends LinearLayout contactPhoto.setVisibility(VISIBLE); int visibility; if (conversationRecipient.getName() != null && conversationRecipient.getName().equals("Loki Public Chat")) { - boolean isModerator = LokiGroupChatAPI.Companion.isUserModerator(TextSecurePreferences.getLocalNumber(getContext()), LokiGroupChatAPI.getPublicChatServerID(), LokiGroupChatAPI.getPublicChatServer()); + boolean isModerator = LokiGroupChatAPI.Companion.isUserModerator(current.getRecipient().getAddress().toString(), LokiGroupChatAPI.getPublicChatServerID(), LokiGroupChatAPI.getPublicChatServer()); visibility = isModerator ? View.VISIBLE : View.GONE; } else { visibility = View.GONE;