This commit is contained in:
Peter Maquiran
2024-10-08 13:16:01 +01:00
parent 0dd4fd665b
commit 9c8ecc182f
22 changed files with 121 additions and 60 deletions
+11 -11
View File
@@ -416,21 +416,21 @@ export class RoomStore {
}
async messageResult(result: Promise<Result<MessageOutPutDataDTO, any>> ) {
let message = await result
// let message = await result
if(message.isOk() && this.room.local == IDBoolean.true) {
this.room.local = IDBoolean.false;
// if(message.isOk() && this.room.local == IDBoolean.true) {
// this.room.local = IDBoolean.false;
console.log('enter')
await this.chatServiceService.roomSetLocalToFalseById({
$roomId: this.room.$id,
roomId: message.value.roomId
})
// console.log('enter')
// await this.chatServiceService.roomSetLocalToFalseById({
// $roomId: this.room.$id,
// roomId: message.value.roomId
// })
this.room.id = message.value.roomId
this.subscribeToChanges()
}
// this.room.id = message.value.roomId
// this.subscribeToChanges()
// }
}