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