Drain message queue on typing indicator click

This commit is contained in:
Kristóf Tóth 2019-12-19 14:29:02 +01:00
parent a3993e8b87
commit f17fe18cef
2 changed files with 13 additions and 5 deletions

View File

@ -9,9 +9,11 @@
</div>
<div class="tfw-grid-message-body" [innerHtml]="message.message"></div>
</div>
<div *ngIf="showTypingIndicator" class="tfw-grid-message jumping-circle-container">
<div class="jumping-circle" id="jc1"></div>
<div class="jumping-circle" id="jc2"></div>
<div class="jumping-circle" id="jc3"></div>
</div>
<div *ngIf="showTypingIndicator"
class="tfw-grid-message jumping-circle-container"
(click)="drainMessageQueue()">
<div class="jumping-circle" id="jc1"></div>
<div class="jumping-circle" id="jc2"></div>
<div class="jumping-circle" id="jc3"></div>
</div>
</div>

View File

@ -59,4 +59,10 @@ export class MessagesComponent implements OnInit {
convertMarkdownToHTML(text: string) {
return this.markdownService.convertToHtml(text);
}
drainMessageQueue() {
this.websocketService.send({
'key': 'message.queue.drain'
});
}
}