aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreta <hi@theta.eu.org>2019-10-02 13:07:57 +0100
committereta <hi@theta.eu.org>2019-10-02 13:07:57 +0100
commit2b69256bdc4b7157b4ac1c5ab60181e7f3ad6d87 (patch)
tree6afe5e52ff152d77666313deaded0aac72d83e64
parent7fac20c58b25fc59aa3dbcd2c53ac4471a444b63 (diff)
downloadsms-irc-2b69256bdc4b7157b4ac1c5ab60181e7f3ad6d87.tar.gz
sms-irc-2b69256bdc4b7157b4ac1c5ab60181e7f3ad6d87.tar.bz2
sms-irc-2b69256bdc4b7157b4ac1c5ab60181e7f3ad6d87.zip
fix logged in log message
-rw-r--r--src/whatsapp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/whatsapp.rs b/src/whatsapp.rs
index 76ee89b..bed72a1 100644
--- a/src/whatsapp.rs
+++ b/src/whatsapp.rs
@@ -637,6 +637,7 @@ impl WhatsappManager {
Ok(())
}
fn on_established(&mut self, jid: Jid, ps: WaPersistentSession) -> Result<()> {
+ self.our_jid = Some(jid.clone());
if self.our_jid != self.prev_jid {
info!("Logged in as {}.", jid);
if self.prev_jid.is_some() {
@@ -657,7 +658,6 @@ impl WhatsappManager {
}
self.store.store_wa_persistence(ps.clone())?;
self.conn.set_persistent(Some(ps));
- self.our_jid = Some(jid.clone());
self.prev_jid = Some(jid);
self.connected = true;
Ok(())