diff --git a/res/values/strings.xml b/res/values/strings.xml index be76c140..8d976dce 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -259,5 +259,7 @@ Received masseges will be marked with a green tick. Be aware that this might no work in every case. Colorize send button to indicate contact status Other + Conference name + Use room’s subject instead of JID to identify conferences - + \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 3dab0959..024335f1 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -63,6 +63,11 @@ android:title="@string/pref_notification_grace_period" /> + { } TextView convName = (TextView) view .findViewById(R.id.conversation_name); - convName.setText(conv.getName()); + if (conv.getMode() == Conversation.MODE_SINGLE || activity.useSubjectToIdentifyConference()) { + convName.setText(conv.getName()); + } else { + convName.setText(conv.getContactJid().split("/")[0]); + } TextView convLastMsg = (TextView) view .findViewById(R.id.conversation_lastmsg); ImageView imagePreview = (ImageView) view