chore: adapt latest changes from GPUI and nostr-sdk

This commit is contained in:
2025-01-30 08:03:39 +07:00
parent 72a6d79bc5
commit 82f18fc478
19 changed files with 276 additions and 186 deletions

View File

@@ -169,9 +169,11 @@ impl ChatPanel {
.pubkey(author);
// Get all DM events in database
let query = client.database().query(vec![recv, send]).await?;
let recv_events = client.database().query(recv).await?;
let send_events = client.database().query(send).await?;
let events = recv_events.merge(send_events);
Ok(query)
Ok(events)
}
})
.await;

View File

@@ -312,7 +312,7 @@ impl Render for Compose {
if let Some(contacts) = self.contacts.read(cx).clone() {
this.child(
uniform_list(
cx.model().clone(),
cx.entity().clone(),
"contacts",
contacts.len(),
move |this, range, window, cx| {

View File

@@ -42,7 +42,7 @@ impl Sidebar {
closeable: true,
zoomable: true,
focus_handle: cx.focus_handle(),
view_id: cx.model().entity_id(),
view_id: cx.entity().entity_id(),
inbox,
}
}