Merge pull request #2758 from ChaosKid42/master

setting room subject also sets room name
This commit is contained in:
Daniel Gultsch 2018-01-15 10:43:01 +01:00 committed by GitHub
commit b137681f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2615,9 +2615,10 @@ public class XmppConnectionService extends Service {
this.sendMessagePacket(conference.getAccount(), packet); this.sendMessagePacket(conference.getAccount(), packet);
final MucOptions mucOptions = conference.getMucOptions(); final MucOptions mucOptions = conference.getMucOptions();
final MucOptions.User self = mucOptions.getSelf(); 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(); Bundle options = new Bundle();
options.putString("muc#roomconfig_persistentroom", "1"); options.putString("muc#roomconfig_persistentroom", "1");
options.putString("muc#roomconfig_roomname", subject);
this.pushConferenceConfiguration(conference, options, null); this.pushConferenceConfiguration(conference, options, null);
} }
} }