diff --git a/res/values/strings.xml b/res/values/strings.xml index be76c1408242cb0623723656d7da41a02ad17f85..8d976dcef947ec55636fe207e90c1fdfe74864ef 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 3dab09592458d1af68ea5d3a06fa757fdb484e08..024335f150d2bbaabadababef40654921523ff20 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