fix error

This commit is contained in:
Peter Maquiran
2024-09-18 19:13:59 +01:00
parent 6dac5733a6
commit 9e7a8b6cb6
3 changed files with 14 additions and 12 deletions
@@ -73,7 +73,7 @@ export class GetRoomListUseCaseService {
if(e.chatRoom.user1 != null && e.chatRoom.user2 != null || e.chatRoom.user1?.wxUserId == e.chatRoom.user2?.wxUserId) {
return true
} else {
Logger.error("direct room invalid data", {
Logger.error("direct room invalid data from, GetRoomListUseCaseService.execute", {
data: e.chatRoom,
user1: e.chatRoom.user1,
user2: e.chatRoom.user2
@@ -182,15 +182,17 @@ export class ContactsPage implements OnInit {
if(room.isOk()) {
console.log('room', room)
console.log('result.value', result.value)
console.log('receiverId', user.wxUserId)
this.modalController.dismiss(new RoomViewModel(room.value))
}
} else {
//
const room = await this.chatServiceService.roomGetLocalById({
$roomId: user.wxUserId.toString()
})
if(room.isOk()) {
this.modalController.dismiss(new RoomViewModel(room.value))
}
}
}
+6 -6
View File
@@ -1,11 +1,11 @@
export let versionData = {
"shortSHA": "a4d81a68e",
"SHA": "a4d81a68e6bcc0593aa28a328cc175e2a86960e6",
"shortSHA": "6dac5733a",
"SHA": "6dac5733a6a1f6372f8e8cc44e4d44446ed71601",
"branch": "feature/chat-new-api-peter",
"lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Wed Sep 18 15:24:50 2024 +0100'",
"lastCommitMessage": "add documentation and remove console logs",
"lastCommitNumber": "6081",
"changeStatus": "On branch feature/chat-new-api-peter\nYour branch is ahead of 'origin/feature/chat-new-api-peter' by 1 commit.\n (use \"git push\" to publish your local commits)\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/core/chat/entity/group.ts\n\tmodified: src/app/module/chat/domain/use-case/room/room-bold-sync-use-case.service.ts\n\tmodified: src/app/ui/chat/component/messages/messages.page.html\n\tmodified: src/app/ui/chat/component/messages/messages.page.ts\n\tmodified: src/app/ui/chat/modal/messages/messages.page.html\n\tmodified: src/app/ui/chat/modal/messages/messages.page.scss\n\tmodified: src/app/ui/chat/modal/messages/messages.page.ts\n\tmodified: src/app/ui/chat/store/roomStore.ts\n\tmodified: version/git-version.ts",
"lastCommitTime": "'Wed Sep 18 19:02:45 2024 +0100'",
"lastCommitMessage": "reflect to mobile",
"lastCommitNumber": "6082",
"changeStatus": "On branch feature/chat-new-api-peter\nYour branch is up to date with 'origin/feature/chat-new-api-peter'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/module/chat/domain/use-case/room/room-get-list-use-case.service.ts\n\tmodified: src/app/ui/chat/modal/messages/contacts/contacts.page.ts",
"changeAuthor": "peter.maquiran"
}