Limit @here UI to members or higher

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/ConversationFragment.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/ui/ConversationFragment.java 🔗

@@ -1526,7 +1526,7 @@ public class ConversationFragment extends XmppFragment
                         u.setRole("participant");
                         allUsers.add(u);
                     }
-                    if (!allUsers.isEmpty()) {
+                    if (!allUsers.isEmpty() && conversation.getMucOptions().getSelf() != null && conversation.getMucOptions().getSelf().getAffiliation().ranks(MucOptions.Affiliation.MEMBER)) {
                         final var u = new MucOptions.User(conversation.getMucOptions(), null, "\0attention", "Notify active participants", new HashSet<>());
                         u.setRole("participant");
                         allUsers.add(u);