aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/parser/MessageParser.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 18:13:10 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 18:13:10 +0200
commit004867686b670c368038a45324b44dee2c465d66 (patch)
tree3ff67588f0e19bf43a72e410c99fed25d0647176 /src/main/java/de/pixart/messenger/parser/MessageParser.java
parent9f45e2509e8e71a4b31bdb14f3cb60fb7e2d0b75 (diff)
leave/join on bookmark modifactions
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser/MessageParser.java')
-rw-r--r--src/main/java/de/pixart/messenger/parser/MessageParser.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java
index b3e6bc396..1b9fb2f58 100644
--- a/src/main/java/de/pixart/messenger/parser/MessageParser.java
+++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java
@@ -331,9 +331,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
if (item != null) {
final Bookmark bookmark = Bookmark.parseFromItem(item, account);
if (bookmark != null) {
- //TODO find conversation
- account.putBookmark(bookmark);
- //TODO handle autojoin
+ mXmppConnectionService.processModifiedBookmark(bookmark);
}
}
if (retract != null) {
@@ -341,6 +339,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
if (id != null) {
account.removeBookmark(id);
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": deleted bookmark for " + id);
+ mXmppConnectionService.processDeletedBookmark(account, id);
}
}
} else {