send direct message

This commit is contained in:
Peter Maquiran
2024-08-20 16:34:47 +01:00
parent 4fb24f7875
commit 59fc19879f
41 changed files with 912 additions and 308 deletions
@@ -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++;
}