Hello Ralph,
I don't know if Wokkel is still living or not, but I try my luck with this
little patch which fixes the setting of role and affiliation in User instance
in muc.py.
Souliane has also sent a RSM/MAM implementation a while ago (which has since
been updated in our code) but there was no feedback, we would like to
contribute this upstream and see this moving to Twisted (the XMPP part in
Twisted doesn't seems to evolve a lot) if possible.
Hope this help
Regards
Goffi
# HG changeset patch
# User Goffi <[email protected]>
# Date 1457433148 -3600
# Tue Mar 08 11:32:28 2016 +0100
# Node ID f9158a495c662446ccf5253c435e01535bbd43a2
# Parent 62addc486a34d360b30f08c96f6deb0a95a5bf7a
Set role and affiliation in User instance
diff --git a/wokkel/muc.py b/wokkel/muc.py
--- a/wokkel/muc.py
+++ b/wokkel/muc.py
@@ -1309,7 +1309,9 @@
nick = presence.sender.resource
user = User(nick, presence.entity)
- # Update user status
+ # Update user data
+ user.role = presence.role
+ user.affiliation = presence.affiliation
user.status = presence.status
user.show = presence.show
_______________________________________________
Twisted-Jabber mailing list
[email protected]
https://mailman.ik.nu/mailman/listinfo/twisted-jabber