diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-08 20:51:04 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-08 20:51:04 +0200 |
commit | 366ebeb960e07133a37182b78cb345216e351e21 (patch) | |
tree | 46f5035c380790247b26ec85881006ff7c196d07 /src | |
parent | 4bfeb27953e60b2474382fa338cd637954f478c0 (diff) |
fixed pm to vistors
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 9 | ||||
-rw-r--r-- | src/main/res/values/themes.xml | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index 9e88b5b76..119f06fc1 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -445,13 +445,8 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers banFromConference.setVisible(true); } } else { - if (jid != null && !jid.isBareJid()) { - if (mConversation.getMucOptions().isUserInRoom(jid)) { - sendPrivateMessage.setVisible(true); - } else { - sendPrivateMessage.setVisible(false); - } - } + + sendPrivateMessage.setVisible(user.getRole().ranks(MucOptions.Role.VISITOR)); } } diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index 5f8d5ab67..8a4b7f787 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -159,6 +159,8 @@ </style> <style name="ConversationsTheme.FullScreen" parent="@style/Theme.AppCompat.Light"> + <item name="colorPrimary">@color/primary500</item> + <item name="colorPrimaryDark">@color/primary700</item> <item name="android:windowNoTitle">true</item> <item name="android:windowActionBar">false</item> <item name="android:windowFullscreen">true</item> |