improve message

This commit is contained in:
Peter Maquiran
2022-01-11 19:49:43 +01:00
parent 5ffcadbd40
commit e79501e83c
3 changed files with 5 additions and 8 deletions
-5
View File
@@ -94,11 +94,6 @@ export class HomePage implements OnInit {
private sqliteservice: SqliteService, private sqliteservice: SqliteService,
private RouteService: RouteService, private RouteService: RouteService,
private RocketChatClientService: RocketChatClientService) { private RocketChatClientService: RocketChatClientService) {
this.RocketChatClientService.loadHistory('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 10).then((message)=>{
console.log('loadHistory', message)
})
window['jj'] = ()=>{ window['jj'] = ()=>{
//send message // roomId // Message //send message // roomId // Message
this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString()) this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString())
+1 -1
View File
@@ -86,7 +86,7 @@
</div> </div>
</div> </div>
</ion-item-sliding> </ion-item-sliding>
<ion-item-sliding *ngIf="ChatServiceGPR.loadingWholeList || ChatServiceGPR.individualCount < 1"> <ion-item-sliding *ngIf=" ChatServiceGPR.individualCount < 1">
<div *ngFor="let n of numSequence(8); let i = index;" class="item item-hover width-100 d-flex ion-no-padding ion-no-margin"> <div *ngFor="let n of numSequence(8); let i = index;" class="item item-hover width-100 d-flex ion-no-padding ion-no-margin">
<div class="item-icon"><ion-icon class="icon" slot="start" src="assets/icon/icons-chat-grey.svg"></ion-icon></div> <div class="item-icon"><ion-icon class="icon" slot="start" src="assets/icon/icons-chat-grey.svg"></ion-icon></div>
<div class="item-content flex-grow-1 cursor-pointer"> <div class="item-content flex-grow-1 cursor-pointer">
+3 -1
View File
@@ -34,7 +34,9 @@ export class RoomService {
this.id, this.id,
this.constructor.name+this.id, this.constructor.name+this.id,
(Chatmessage) => { (Chatmessage) => {
this.massages.push(Chatmessage.result) const message = new MessageService()
message.setData(Chatmessage.result)
this.massages.push(message)
} }
) )
} }