Angular Chat - Custom Deleted Message
To change the "This message was deleted" text in deleted messages, create a messageTemplate. The following code snippet shows how to replace the default text with a "trash" icon:
app.component.html
- <dx-chat
- messageTemplate="message"
- >
- <div *dxTemplate="let data of 'message'">
- <i *ngIf="data.message.isDeleted" class="dx-icon-trash"></i>
- <span *ngIf="!data.message.isDeleted">{{data.message.text}}</span>
- </div>
- </dx-chat>