hide local part of group chat xmpp address
This commit is contained in:
parent
d37aeef182
commit
e4685ad47a
|
@ -454,7 +454,11 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
||||||
setTitle(mucOptions.isPrivateAndNonAnonymous() ? R.string.action_muc_details : R.string.channel_details);
|
setTitle(mucOptions.isPrivateAndNonAnonymous() ? R.string.action_muc_details : R.string.channel_details);
|
||||||
this.binding.editMucNameButton.setVisibility((self.getAffiliation().ranks(MucOptions.Affiliation.OWNER) || mucOptions.canChangeSubject()) ? View.VISIBLE : View.GONE);
|
this.binding.editMucNameButton.setVisibility((self.getAffiliation().ranks(MucOptions.Affiliation.OWNER) || mucOptions.canChangeSubject()) ? View.VISIBLE : View.GONE);
|
||||||
this.binding.detailsAccount.setText(getString(R.string.using_account, account));
|
this.binding.detailsAccount.setText(getString(R.string.using_account, account));
|
||||||
this.binding.jid.setText(mConversation.getJid().asBareJid().toEscapedString());
|
if (mConversation.isPrivateAndNonAnonymous()) {
|
||||||
|
this.binding.jid.setText(getString(R.string.hosted_on, mConversation.getJid().getDomain()));
|
||||||
|
} else {
|
||||||
|
this.binding.jid.setText(mConversation.getJid().asBareJid().toEscapedString());
|
||||||
|
}
|
||||||
AvatarWorkerTask.loadAvatar(mConversation, binding.yourPhoto, R.dimen.avatar_on_details_screen_size);
|
AvatarWorkerTask.loadAvatar(mConversation, binding.yourPhoto, R.dimen.avatar_on_details_screen_size);
|
||||||
String roomName = mucOptions.getName();
|
String roomName = mucOptions.getName();
|
||||||
String subject = mucOptions.getSubject();
|
String subject = mucOptions.getSubject();
|
||||||
|
@ -490,7 +494,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
||||||
this.binding.mucRole.setText(getStatus(self));
|
this.binding.mucRole.setText(getStatus(self));
|
||||||
if (mucOptions.getSelf().getAffiliation().ranks(MucOptions.Affiliation.OWNER)) {
|
if (mucOptions.getSelf().getAffiliation().ranks(MucOptions.Affiliation.OWNER)) {
|
||||||
this.binding.mucSettings.setVisibility(View.VISIBLE);
|
this.binding.mucSettings.setVisibility(View.VISIBLE);
|
||||||
this.binding.mucConferenceType.setText(MucConfiguration.describe(this,mucOptions));
|
this.binding.mucConferenceType.setText(MucConfiguration.describe(this, mucOptions));
|
||||||
} else if (!mucOptions.isPrivateAndNonAnonymous() && mucOptions.nonanonymous()) {
|
} else if (!mucOptions.isPrivateAndNonAnonymous() && mucOptions.nonanonymous()) {
|
||||||
this.binding.mucSettings.setVisibility(View.VISIBLE);
|
this.binding.mucSettings.setVisibility(View.VISIBLE);
|
||||||
this.binding.mucConferenceType.setText(R.string.group_chat_will_make_your_jabber_id_public);
|
this.binding.mucConferenceType.setText(R.string.group_chat_will_make_your_jabber_id_public);
|
||||||
|
|
|
@ -292,6 +292,7 @@
|
||||||
<string name="conference_shutdown">The group chat was shut down</string>
|
<string name="conference_shutdown">The group chat was shut down</string>
|
||||||
<string name="conference_unknown_error">You are no longer in this group chat</string>
|
<string name="conference_unknown_error">You are no longer in this group chat</string>
|
||||||
<string name="using_account">using account %s</string>
|
<string name="using_account">using account %s</string>
|
||||||
|
<string name="hosted_on">hosted on %s</string>
|
||||||
<string name="checking_x">Checking %s on HTTP host</string>
|
<string name="checking_x">Checking %s on HTTP host</string>
|
||||||
<string name="not_connected_try_again">You are not connected. Try again later</string>
|
<string name="not_connected_try_again">You are not connected. Try again later</string>
|
||||||
<string name="check_x_filesize">Check %s size</string>
|
<string name="check_x_filesize">Check %s size</string>
|
||||||
|
|
Loading…
Reference in a new issue