setting room subject also sets room name

This commit is contained in:
Christoph Scholz 2018-01-13 16:37:49 +01:00
parent de23b37ee2
commit d6bbcbd866
1 changed files with 2 additions and 1 deletions

View File

@ -2615,9 +2615,10 @@ public class XmppConnectionService extends Service {
this.sendMessagePacket(conference.getAccount(), packet);
final MucOptions mucOptions = conference.getMucOptions();
final MucOptions.User self = mucOptions.getSelf();
if (!mucOptions.persistent() && self.getAffiliation().ranks(MucOptions.Affiliation.OWNER)) {
if (self.getAffiliation().ranks(MucOptions.Affiliation.OWNER)) {
Bundle options = new Bundle();
options.putString("muc#roomconfig_persistentroom", "1");
options.putString("muc#roomconfig_roomname", subject);
this.pushConferenceConfiguration(conference, options, null);
}
}