summaryrefslogtreecommitdiffstats
path: root/src/components/roster_list
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/roster_list')
-rw-r--r--src/components/roster_list/contact_request_manager.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/roster_list/contact_request_manager.rs b/src/components/roster_list/contact_request_manager.rs
index 174e677..31dff91 100644
--- a/src/components/roster_list/contact_request_manager.rs
+++ b/src/components/roster_list/contact_request_manager.rs
@@ -109,7 +109,8 @@ pub fn AddContact() -> impl IntoView {
let jid = jid.clone();
async move {
// TODO: error
- client.accept_buddy_request(jid).await;
+ client.accept_buddy_request(jid.clone()).await;
+ set_requests.write().remove(&jid);
}
});