fix(chat): apply unlocked voice audio url
This commit is contained in:
@@ -7,7 +7,6 @@ import type {
|
||||
UnlockHistoryResponse,
|
||||
UnlockPrivateResponse,
|
||||
} from "@/data/dto/chat";
|
||||
import type { ChatLockDetailData } from "@/data/schemas/chat";
|
||||
import { chatApi } from "@/data/services/api";
|
||||
import {
|
||||
LocalChatMediaStorage,
|
||||
@@ -18,6 +17,7 @@ import type {
|
||||
CacheRemoteChatMediaInput,
|
||||
ChatMediaLookupInput,
|
||||
IChatRepository,
|
||||
UnlockedPrivateMessageLocalPatch,
|
||||
} from "@/data/repositories/interfaces";
|
||||
import type { Result } from "@/utils";
|
||||
|
||||
@@ -66,11 +66,11 @@ export class ChatRepository implements IChatRepository {
|
||||
/** 把本地缓存中的单条锁定消息标记为已解锁。 */
|
||||
async markPrivateMessageUnlockedInLocal(
|
||||
messageId: string,
|
||||
lockDetail?: ChatLockDetailData,
|
||||
patch?: UnlockedPrivateMessageLocalPatch,
|
||||
): Promise<Result<void>> {
|
||||
return this.localMessages.markMessageUnlocked(
|
||||
messageId,
|
||||
lockDetail,
|
||||
patch,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user