send delete message

This commit is contained in:
Peter Maquiran
2024-06-14 13:10:11 +01:00
parent 66cdb20b04
commit d75e020324
@@ -191,8 +191,13 @@ export class RoomRepositoryService {
if(result.isOk()) {
return await this.roomLocalDataSourceService.deleteRoomById(id)
const result = await this.roomLocalDataSourceService.deleteRoomById(id)
this.messageLiveDataSourceService.sendMessage({
type: 'createRoom',
payload: {a: '5'}
})
return result
} else if (isHttpResponse(result.error)) {
if(result.error.status == 404) {
await this.roomLocalDataSourceService.deleteRoomById(id)
@@ -269,6 +274,7 @@ export class RoomRepositoryService {
} else if (isHttpResponse(result.error)) {
if(result.error.status == 404) {
await this.roomLocalDataSourceService.deleteRoomById(data.id)
}
// this.httpErrorHandle.httpStatusHandle(result.error)
}