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

@@ -60,12 +60,12 @@ impl AppRegistry {
// Subscribe for all messages
_ = client
.subscribe_with_id(all_messages_sub_id, vec![all_messages], Some(opts))
.subscribe_with_id(all_messages_sub_id, all_messages, Some(opts))
.await;
// Subscribe for new message
_ = client
.subscribe_with_id(new_message_sub_id, vec![new_message], None)
.subscribe_with_id(new_message_sub_id, new_message, None)
.await;
})
.detach();

View File

@@ -35,7 +35,7 @@ impl Inbox {
.author(public_key);
// Get all DM events from database
let events = client.database().query(vec![filter]).await?;
let events = client.database().query(filter).await?;
// Filter result
// - Get unique rooms only