add send message to chat

This commit is contained in:
Peter Maquiran
2024-06-05 15:35:38 +01:00
parent 619465c10d
commit 486e0e8e72
6 changed files with 99 additions and 19 deletions
@@ -143,6 +143,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
ngOnChanges(changes: SimpleChanges): void {
this.roomData$ = this.roomRepositoryService.getItemByIdLive(this.roomId)
this.roomMessage$ = this.messageRepositoryService.getItemsLive(this.roomId)
this.messageRepositoryService.listAllMessagesByRoomId(this.roomId)
}
sendTyping() {}
@@ -408,7 +410,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
const data: MessageInputDTO = {
roomId: this.roomId,
senderId: SessionStore.user.UserId,
message: "hello",
message: this.textField,
messageType: 0,
canEdit: false,
oneShot:false,