mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
improve message
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -33,8 +33,10 @@ export class RoomService {
|
|||||||
this.RocketChatClientService.receiveLiveMessageFromRoom(
|
this.RocketChatClientService.receiveLiveMessageFromRoom(
|
||||||
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)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user