add reaction to chat

This commit is contained in:
Peter Maquiran
2024-08-02 11:34:57 +01:00
parent 8774cef0b2
commit efc7f72042
10 changed files with 245 additions and 21 deletions
@@ -116,7 +116,7 @@ export class MessageAsyncService {
if(result.isOk()) {
console.log('message exist')
return this.messageLocalDataSourceService.update(result.value)
return this.messageLocalDataSourceService.update({...result.value, ...data})
} else {
console.log('message else')
}
@@ -104,6 +104,13 @@ export class MessageRepositoryService {
return err(false)
}
reactToMessage(data) {
this.messageLiveSignalRDataSourceService.sendData({
method: 'ReactMessage',
data
})
}
async listAllMessagesByRoomId(id: string) {
const result = await this.messageRemoteDataSourceService.getMessagesFromRoom(id)