add documentation and remove console logs

This commit is contained in:
Peter Maquiran
2024-09-18 15:24:50 +01:00
parent 8d332f73a8
commit a4d81a68e6
6 changed files with 38 additions and 15 deletions
@@ -178,17 +178,17 @@ export class ContactsPage implements OnInit {
if(room.isOk()) {
console.log('room', room)
console.log('result.value', result.value)
console.log('receiverId', user.wxUserId)
// await this.chatServiceService.getRoomById(user.wxUserId.toString())
this.close(user.wxUserId.toString())
this.openMessageComponent(new RoomViewModel(room.value))
}
} else {
this.close(user.wxUserId.toString())
const room = await this.chatServiceService.roomGetLocalById({
$roomId: user.wxUserId.toString()
})
if(room.isOk()) {
this.openMessageComponent(new RoomViewModel(room.value))
}
}
}