webXMPP

Check-in [848935f105]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Deal with peers which are online/registered, but not pushing status. We should still see that they're online, as distinct from a peer who is entirely disconnected from XMPP.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:848935f10502a93c8740547dc209c5cb223bc7e772f6f480bcf6200f31b540e8
User & Date: ajv-899-334-8894@vsta.org 2018-01-18 00:29:46
Context
2018-01-18
00:30
Tidy a comment check-in: 29dee4f7c7 user: ajv-899-334-8894@vsta.org tags: master, trunk
00:29
Deal with peers which are online/registered, but not pushing status. We should still see that they're online, as distinct from a peer who is entirely disconnected from XMPP. check-in: 848935f105 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-07-25
04:21
Add an explicit button to re-sync with server, when you're not sure (and it saves the full cost of a screen repaint). check-in: 7f4bafda00 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to acct_xmpp.py.

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
	senddom = n.domain
	if (not sender) or (not senddom):
	    return
	who = sender + "@" + senddom

	# Decode status (i.e., "show") update
	sys.stderr.write("presence: %s\n" % (who,))
	anystat = False
	for kid in presence.kids:

	    # Decode initial part of data
	    d0 = None
	    if len(kid.data) > 0:
		d0 = toascii(kid.data[0])
		if not isinstance(d0, str):







|







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
	senddom = n.domain
	if (not sender) or (not senddom):
	    return
	who = sender + "@" + senddom

	# Decode status (i.e., "show") update
	sys.stderr.write("presence: %s\n" % (who,))
	anystat = bool(presence.kids)
	for kid in presence.kids:

	    # Decode initial part of data
	    d0 = None
	    if len(kid.data) > 0:
		d0 = toascii(kid.data[0])
		if not isinstance(d0, str):