~singpolyma/cheogram-android

c57031727d52dc707481658680a8753cdfdd7ba5 — Stephen Paul Weber 8 months ago d09bf29
Show commands on MUC
1 files changed, 3 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +3 -0
@@ 3085,6 3085,9 @@ public class ConversationFragment extends XmppFragment
        if (commandAdapter == null) return;

        Jid commandJid = conversation.getContact().resourceWhichSupport(Namespace.COMMANDS);
        if (commandJid == null && conversation.getMode() == Conversation.MODE_MULTI && conversation.getMucOptions().hasFeature(Namespace.COMMANDS)) {
            commandJid = conversation.getJid().asBareJid();
        }
        if (commandJid == null && conversation.getJid().isDomainJid()) {
            commandJid = conversation.getJid();
        }