mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
send delete message
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user