setting room subject also sets room name

This commit is contained in:
Christian Schneppe 2018-01-17 15:19:26 +01:00
parent 0f928c60bf
commit e2c9735e88

View file

@ -2804,9 +2804,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);
}
}