diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:33:14 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:33:14 +0200 |
commit | 182195e8e0b278e5fc32e48280b3f33ab4dc3ecd (patch) | |
tree | c8873c0b604243ff8c90c92363f24f8f6e670694 /src/main/java/de/pixart/messenger/parser | |
parent | 367de489981c77ba000b212174acc9a07f21f0ec (diff) |
store own affiliation and role to disk
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/PresenceParser.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/PresenceParser.java b/src/main/java/de/pixart/messenger/parser/PresenceParser.java index 3b6b83fd4..4091e34cd 100644 --- a/src/main/java/de/pixart/messenger/parser/PresenceParser.java +++ b/src/main/java/de/pixart/messenger/parser/PresenceParser.java @@ -71,7 +71,10 @@ public class PresenceParser extends AbstractParser implements if (mucOptions.setOnline()) { mXmppConnectionService.getAvatarService().clear(mucOptions); } - mucOptions.setSelf(user); + if (mucOptions.setSelf(user)) { + Log.d(Config.LOGTAG, "role or affiliation changed"); + mXmppConnectionService.databaseBackend.updateConversation(conversation); + } mXmppConnectionService.persistSelfNick(user); invokeRenameListener(mucOptions, true); } |