mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
send direct message
This commit is contained in:
@@ -162,13 +162,13 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
|
||||
this.roomData$ = this.RoomLocalRepository.getRoomByIdLive(this.roomId)
|
||||
|
||||
|
||||
this.roomData$.subscribe(e => {
|
||||
console.log(e)
|
||||
// console.log(e)
|
||||
if(e) {
|
||||
this.roomType = e.roomType
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
this.getMessages();
|
||||
@@ -337,12 +337,13 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
if (index !== -1) { // Check if the item was found
|
||||
|
||||
this.messages1[this.roomId][index].id = updateMessage.id
|
||||
this.messages1[this.roomId][index].info = updateMessage.info
|
||||
|
||||
let attachmentIndex = 0;
|
||||
|
||||
for(const message of updateMessage.attachments) {
|
||||
for(const attachment of updateMessage.attachments) {
|
||||
|
||||
this.messages1[this.roomId][index].attachments[attachmentIndex].id = message.id
|
||||
this.messages1[this.roomId][index].attachments[attachmentIndex].id = attachment.id
|
||||
attachmentIndex++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user