add strangers section to chats sidebar

This commit is contained in:
Ren Amamiya
2023-07-16 18:25:58 +07:00
parent 5ce9fa515a
commit 9a09a04a5d
7 changed files with 83 additions and 18 deletions

17
src/utils/types.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
import { NDKEvent } from '@nostr-dev-kit/ndk';
export interface LumeEvent extends NDKEvent {
event_id: string;
parent_id: string;
}
export interface Chats {
id: string;
event_id: string;
receiver_pubkey: string;
sender_pubkey: string;
content: string;
tags: string[][];
created_at: number;
new_messages: number;
}

View File

@@ -1,6 +0,0 @@
import { NDKEvent } from '@nostr-dev-kit/ndk';
export interface LumeEvent extends NDKEvent {
event_id: string;
parent_id: string;
}