feat: Add emoji and alot of other fixes
This commit is contained in:
36
toju-app/src/app/shared-kernel/custom-emoji.models.ts
Normal file
36
toju-app/src/app/shared-kernel/custom-emoji.models.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export interface CustomEmoji {
|
||||
id: string;
|
||||
name: string;
|
||||
creatorUserId: string;
|
||||
dataUrl: string;
|
||||
hash: string;
|
||||
mime: string;
|
||||
size: number;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
savedByUser?: boolean;
|
||||
}
|
||||
|
||||
export interface CustomEmojiSummaryItem {
|
||||
id: string;
|
||||
hash: string;
|
||||
updatedAt: number;
|
||||
}
|
||||
|
||||
export type CustomEmojiTransferManifest = Omit<CustomEmoji, 'dataUrl'>;
|
||||
|
||||
export type EmojiShortcutEntry = UnicodeEmojiShortcutEntry | CustomEmojiShortcutEntry;
|
||||
|
||||
export interface UnicodeEmojiShortcutEntry {
|
||||
kind: 'unicode';
|
||||
key: string;
|
||||
emoji: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface CustomEmojiShortcutEntry {
|
||||
kind: 'custom';
|
||||
key: string;
|
||||
emoji: CustomEmoji;
|
||||
label: string;
|
||||
}
|
||||
Reference in New Issue
Block a user