chore Api

This commit is contained in:
手瓜一十雪
2024-08-09 18:17:45 +08:00
parent fbe2d78331
commit 173f83808e
5 changed files with 40 additions and 45 deletions

View File

@@ -17,6 +17,7 @@ type PlayloadType = FromSchema<typeof SchemaData>;
class MarkMsgAsRead extends BaseAction<PlayloadType, null> {
async getPeer(payload: PlayloadType): Promise<Peer> {
const NTQQUserApi = this.CoreContext.getApiContext().UserApi;
const NTQQFriendApi = this.CoreContext.getApiContext().FriendApi;
if (payload.user_id) {
const peerUid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
if (!peerUid) {