add strangers section to chats sidebar
This commit is contained in:
17
src/utils/types.d.ts
vendored
Normal file
17
src/utils/types.d.ts
vendored
Normal 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;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import { NDKEvent } from '@nostr-dev-kit/ndk';
|
||||
|
||||
export interface LumeEvent extends NDKEvent {
|
||||
event_id: string;
|
||||
parent_id: string;
|
||||
}
|
||||
Reference in New Issue
Block a user