stanza
stanza copied to clipboard
ref(muc): rejoin MUC with initial presence
Stanza will rejoin rooms after auto reconnect, but it forgets what presence was used. This commit introduces RoomState where the initial presence is stored.
ah this breaks the tests, I need to take a look
@paweldomas any progress on this?
@Sheharyar566 I'm running from a fork, I don't know if this change will land upstream
Btw. this PR still has a problem where if you have sent any other presence since the initial join it will not be used, but reverted back. Maybe it's better to leave it up to the app to send presence on rejoin. Otherwise any presence update sent to the room needs to be cached and I'm not sure what's the best way of doing it in Stanza.
@paweldomas ah makes sense.... thanks for the update man
sorry @paweldomas for i'm borrowing this thread ;)... yo @legastero can you please enable the issues section again (not sure why you hid it in the first place without notifying or may be I missed the notification sorry for that tho)? Or may be put something in the readme please, regarding how to connect to the discuss server? cause i'm getting Access Denied by Server Policy on connecting to the server.