mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
fix audio icon
This commit is contained in:
@@ -17,6 +17,7 @@ export class RoomViewModel implements IRoom {
|
||||
receiverId?: typeof RoomEntitySchema._input.receiverId
|
||||
displayDate = ''
|
||||
lastMessageImage = false
|
||||
lastMessageAudio = false
|
||||
lastMessageDocument = false
|
||||
|
||||
constructor(model: IRoom) {
|
||||
@@ -33,7 +34,10 @@ export class RoomViewModel implements IRoom {
|
||||
this.lastMessageDocument = true
|
||||
} else if (this.messages?.[0]?.attachments[0]?.source == MessageAttachmentSource.Webtrix) {
|
||||
this.lastMessageDocument = true
|
||||
} else if (this.messages?.[0]?.attachments[0]?.mimeType?.startsWith('audio/')) {
|
||||
this.lastMessageAudio = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
formatarData() {
|
||||
|
||||
Reference in New Issue
Block a user