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 RouteService: RouteService,
private RocketChatClientService: RocketChatClientService) {
this.RocketChatClientService.loadHistory('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 10).then((message)=>{
console.log('loadHistory', message)
})
window['jj'] = ()=>{
//send message // roomId // Message
this.RocketChatClientService.send('fsMwcNdufWvdnChj7ya9nF9cX2HizxxWAM', 'Mensagem enviada programaticamente.'+ new Date().toISOString())
+1 -1
View File
@@ -86,7 +86,7 @@
</div>
</div>
</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 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">
+4 -2
View File
@@ -33,8 +33,10 @@ export class RoomService {
this.RocketChatClientService.receiveLiveMessageFromRoom(
this.id,
this.constructor.name+this.id,
(Chatmessage)=>{
this.massages.push(Chatmessage.result)
(Chatmessage) => {
const message = new MessageService()
message.setData(Chatmessage.result)
this.massages.push(message)
}
)
}