proper title for secret chat

This commit is contained in:
kosyak 2024-10-12 13:39:44 +02:00
parent 701c21ae4a
commit 5920533cf5
2 changed files with 2 additions and 1 deletions

View file

@ -761,7 +761,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
if (conversation.getMode() == Conversational.MODE_MULTI) { if (conversation.getMode() == Conversational.MODE_MULTI) {
actionBar.setTitle(getString(R.string.muc_private_conversation_title, conversation.getNextCounterpart().getResource(), conversation.getName())); actionBar.setTitle(getString(R.string.muc_private_conversation_title, conversation.getNextCounterpart().getResource(), conversation.getName()));
} else { } else {
actionBar.setTitle(getString(R.string.secret_chat_title, conversation.getName(), "")); actionBar.setTitle(getString(R.string.secret_chat_title_no_resource, conversation.getName()));
} }
} else { } else {
actionBar.setTitle(conversation.getName()); actionBar.setTitle(conversation.getName());

View file

@ -1091,6 +1091,7 @@
<string name="filter">filter</string> <string name="filter">filter</string>
<string name="could_not_create_file">could_not_create_file</string> <string name="could_not_create_file">could_not_create_file</string>
<string name="secret_chat_title">%1$s (Secret Chat / %2$s)</string> <string name="secret_chat_title">%1$s (Secret Chat / %2$s)</string>
<string name="secret_chat_title_no_resource">%1$s (Secret Chat / %2$s)</string>
<string name="muc_private_conversation_title">%1$s (%2$s)</string> <string name="muc_private_conversation_title">%1$s (%2$s)</string>
<string name="note_to_self_conversation_title">Note to self (%1$s)</string> <string name="note_to_self_conversation_title">Note to self (%1$s)</string>
<string name="muc_private_conversation_info_title">Private conversation with:</string> <string name="muc_private_conversation_info_title">Private conversation with:</string>