feat: Show date along with time in messages (#1748)

This commit is contained in:
Pranav Raj S 2021-02-11 12:10:08 +05:30 committed by GitHub
parent a880845d2b
commit d92a6a3078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 4 deletions

View file

@ -131,7 +131,7 @@ export default {
return !this.data.message_type ? 'left' : 'right';
},
readableTime() {
return this.messageStamp(this.data.created_at);
return this.messageStamp(this.data.created_at, 'LLL d, h:mm a');
},
isBubble() {
return [0, 1, 3].includes(this.data.message_type);