Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectrum did not automatically subscribe to my presence updates. #78

Open
moyamo opened this issue Dec 13, 2015 · 3 comments
Open

Spectrum did not automatically subscribe to my presence updates. #78

moyamo opened this issue Dec 13, 2015 · 3 comments
Labels
Milestone

Comments

@moyamo
Copy link
Contributor

moyamo commented Dec 13, 2015

Spectrum no longer sends a WrapperMessage.TYPE_LOGOUT when the last resource of a user logs out. I'm having this problem in gateway mode. I think this bug was introduced when you ported spectrum to swift3.

@jankaluza
Copy link
Collaborator

Can you please attach or send me a log from that? It works for me here when testing.

@moyamo
Copy link
Contributor Author

moyamo commented Dec 13, 2015

2015-12-13 19:10:13,506 INFO  Component.RAW: RAW DATA IN <presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/>
2015-12-13 19:10:13,507 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,507 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  Component.RAW: RAW DATA IN <presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/><presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/>
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,509 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,509 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,510 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,510 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,510 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,510 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,510 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,531 INFO  Component.RAW: RAW DATA IN <presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/>
2015-12-13 19:10:13,531 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,531 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,531 INFO  Component.RAW: RAW DATA IN <presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/>
2015-12-13 19:10:13,531 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,532 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,532 INFO  Component.RAW: RAW DATA IN <presence from='[email protected]/BitlBee' to='[email protected]' type='unavailable'/>
2015-12-13 19:10:13,532 INFO  UserManager: PRESENCE2 [email protected]
2015-12-13 19:10:13,532 INFO  User: PRESENCE [email protected]/BitlBee [email protected]
2015-12-13 19:10:13,602 INFO  NetworkPluginServer: PING to 0x7f08f3eb2810 (ID=37)
2015-12-13 19:10:13,602 INFO  NetworkPluginServer: PING to 0x7f08f3e93680 (ID=14)

@moyamo
Copy link
Contributor Author

moyamo commented Dec 13, 2015

It turns out the the spectrum server in my roster did not subscribe to my presence updates. I fixed this by sending a presence available directly to the spectrum server. After the spectrum server received the presence available it attempted to subscribe to my presence updates, which I authorised.

I'm not sure why this didn't happen automatically.

@moyamo moyamo changed the title Spectrum doesn't send WrapperMessage.TYPE_LOGOUT Spectrum did not automatically subscribe to my presence updates. Dec 13, 2015
@jankaluza jankaluza modified the milestone: 2.0.1 Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants