refactor(chat): remove guest history synchronization
This commit is contained in:
@@ -259,22 +259,6 @@ export class NavigationStorage {
|
||||
await SessionAsyncUtil.remove(StorageKeys.pendingChatImageReturn);
|
||||
}
|
||||
|
||||
static async saveGuestChatOwnerKey(ownerKey: string): Promise<void> {
|
||||
await SessionAsyncUtil.setJson(
|
||||
StorageKeys.guestChatOwnerKey,
|
||||
ownerKey,
|
||||
z.string().min(1),
|
||||
);
|
||||
}
|
||||
|
||||
static async getGuestChatOwnerKey(): Promise<string | null> {
|
||||
const result = await SessionAsyncUtil.getJson(
|
||||
StorageKeys.guestChatOwnerKey,
|
||||
z.string().min(1),
|
||||
);
|
||||
return Result.isOk(result) ? result.data : null;
|
||||
}
|
||||
|
||||
private static parsePendingChatUnlock(
|
||||
value: PendingChatUnlock | null,
|
||||
): PendingChatUnlock | null {
|
||||
|
||||
Reference in New Issue
Block a user