diff options
author | 2025-06-12 02:09:15 +0100 | |
---|---|---|
committer | 2025-06-12 02:09:15 +0100 | |
commit | dd589458e41eb81a53363ac59445c585ee46b5a9 (patch) | |
tree | 65638b577144a7b72c575ed7dfbab55417e137f9 /filamento | |
parent | d0e9d9f22df6ea5f037537b2af6357580965eb49 (diff) | |
download | luz-dd589458e41eb81a53363ac59445c585ee46b5a9.tar.gz luz-dd589458e41eb81a53363ac59445c585ee46b5a9.tar.bz2 luz-dd589458e41eb81a53363ac59445c585ee46b5a9.zip |
Diffstat (limited to 'filamento')
-rw-r--r-- | filamento/src/logic/online.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/filamento/src/logic/online.rs b/filamento/src/logic/online.rs index 2bf9cd8..b36f9a9 100644 --- a/filamento/src/logic/online.rs +++ b/filamento/src/logic/online.rs @@ -290,12 +290,9 @@ pub async fn handle_accept_subscription_request<Fs: FileStore + Clone>( connection: Connected, jid: BareJID, ) -> Result<(), SubscribeError> { - let client_user = logic.db.read_user(logic.jid.clone()).await?; - let nick = client_user.nick.map(|nick| Nick(nick)); let presence = Stanza::Presence(stanza::client::presence::Presence { to: Some(jid.into()), - r#type: Some(stanza::client::presence::PresenceType::Subscribe), - nick, + r#type: Some(stanza::client::presence::PresenceType::Subscribed), ..Default::default() }); connection.write_handle().write(presence).await?; |