bot: resync on 'rejoin' rather than leave and join
The xmpp crate doesn't yet have mechanisms to wait for the next incoming presence and so the `leave_room` method returns after the unavailable presence has been set. Thus the code may still think it's being joined when it pretty soon going not to be. Instead, we chose to send another join presence to signal the MUC we want to get the full state again (occupants, subject), without leaving. Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
ed1e9829ae
commit
8dfb89fe38
2 changed files with 19 additions and 29 deletions
|
|
@ -20,7 +20,7 @@ pretty_env_logger = "0.5"
|
|||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
serde_json = "1.0"
|
||||
toml = "0.9"
|
||||
xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs", branch = "xmpp-config", default-features = false, features = [ "serde", "starttls", "rustls-native-certs", "aws_lc_rs" ] }
|
||||
xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs", branch = "xmpp-join-resync", default-features = false, features = [ "serde", "starttls", "rustls-native-certs", "aws_lc_rs" ] }
|
||||
hmac = "0.12"
|
||||
sha2 = "0.10"
|
||||
hex = "0.4"
|
||||
|
|
|
|||
Loading…
Reference in a new issue