diff options
| author | 2025-04-03 03:41:38 +0100 | |
|---|---|---|
| committer | 2025-04-03 03:41:38 +0100 | |
| commit | 91f1994af940085d5d475a97820900ebbf0eb553 (patch) | |
| tree | 6aab872f71d17a785d3d9286742fef38983d274c /filamento/src/presence.rs | |
| parent | 9ce3827a7d25714d17f266f0f50bb29f41090175 (diff) | |
| download | luz-91f1994af940085d5d475a97820900ebbf0eb553.tar.gz luz-91f1994af940085d5d475a97820900ebbf0eb553.tar.bz2 luz-91f1994af940085d5d475a97820900ebbf0eb553.zip  | |
feat: better message handling, pep publish, xep_0172: nick
Diffstat (limited to 'filamento/src/presence.rs')
| -rw-r--r-- | filamento/src/presence.rs | 15 | 
1 files changed, 2 insertions, 13 deletions
diff --git a/filamento/src/presence.rs b/filamento/src/presence.rs index e35761c..bae8793 100644 --- a/filamento/src/presence.rs +++ b/filamento/src/presence.rs @@ -78,11 +78,6 @@ impl Online {          timestamp: Option<DateTime<Utc>>,      ) -> stanza::client::presence::Presence {          stanza::client::presence::Presence { -            from: None, -            id: None, -            to: None, -            r#type: None, -            lang: None,              show: self.show.map(|show| match show {                  Show::Away => stanza::client::presence::Show::Away,                  Show::Chat => stanza::client::presence::Show::Chat, @@ -97,11 +92,11 @@ impl Online {              priority: self                  .priority                  .map(|priority| stanza::client::presence::Priority(priority)), -            errors: Vec::new(),              delay: timestamp.map(|timestamp| Delay {                  from: None,                  stamp: timestamp,              }), +            ..Default::default()          }      }  } @@ -112,22 +107,16 @@ impl Offline {          timestamp: Option<DateTime<Utc>>,      ) -> stanza::client::presence::Presence {          stanza::client::presence::Presence { -            from: None, -            id: None, -            to: None,              r#type: Some(stanza::client::presence::PresenceType::Unavailable), -            lang: None, -            show: None,              status: self.status.map(|status| stanza::client::presence::Status {                  lang: None,                  status: String1024(status),              }), -            priority: None, -            errors: Vec::new(),              delay: timestamp.map(|timestamp| Delay {                  from: None,                  stamp: timestamp,              }), +            ..Default::default()          }      }  }  | 
