From d4afee032d5b4e491e5873cab4ed78c80fafe164 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Fri, 11 Apr 2025 05:38:16 +0100 Subject: feat(filamento): `get_roster_with_users()` on client connect --- filamento/src/lib.rs | 2 +- filamento/src/logic/connect.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'filamento') diff --git a/filamento/src/lib.rs b/filamento/src/lib.rs index 9fa254e..7bcf593 100644 --- a/filamento/src/lib.rs +++ b/filamento/src/lib.rs @@ -152,7 +152,7 @@ pub enum Command { #[derive(Debug, Clone)] pub enum UpdateMessage { - Online(Online, Vec), + Online(Online, Vec<(Contact, User)>), Offline(Offline), /// received roster from jabber server (replace full app roster state with this) /// is this needed? diff --git a/filamento/src/logic/connect.rs b/filamento/src/logic/connect.rs index 37cdad5..9d61ca4 100644 --- a/filamento/src/logic/connect.rs +++ b/filamento/src/logic/connect.rs @@ -19,7 +19,7 @@ pub async fn handle_connect( debug!("getting roster"); logic .clone() - .handle_online(Command::GetRoster(send), connection.clone()) + .handle_online(Command::GetRosterWithUsers(send), connection.clone()) .await; debug!("sent roster req"); let roster = recv.await; -- cgit