update fork #128

Manually merged
tristan merged 181 commits from mirror/monocles_chat_clean:master into master 2026-01-23 14:02:38 +01:00
Showing only changes of commit c71837136f - Show all commits

Fix pubsub post retractions in messages

Arne 2026-01-22 12:38:07 +01:00

View file

@ -1763,7 +1763,6 @@ public class MessageParser extends AbstractParser
if (node != null && node.equals(Namespace.ATOM) || node != null && node.startsWith("urn:xmpp:microblog:0") || node != null && node.startsWith(Namespace.PUBSUB_SOCIAL_FEED)) {
for (Element child : items.getChildren()) {
if ("item".equals(child.getName())) {
final String postId = child.getAttribute("id");
Element entry = child.findChild("entry", Namespace.ATOM);
if (entry != null) {
try {
@ -1782,9 +1781,10 @@ public class MessageParser extends AbstractParser
} catch (Exception e) {
Log.d(Config.LOGTAG, "error creating post/comment from pubsub item in message", e);
}
} else if (postId != null) {
mXmppConnectionService.onPostRetracted(postId);
}
} else if ("retract".equals(child.getName())) {
final String postId = child.getAttribute("id");
mXmppConnectionService.onPostRetracted(postId);
}
}
} else {