feat: Show year in message timestamp if the message is not from the current year (#6830)

* feat: Shows year in message timestamp if the message is not from the current year

* chore: Naming fix
This commit is contained in:
Sivin Varghese
2023-04-06 15:09:38 +05:30
committed by GitHub
parent ee131011f9
commit ab6276327a
3 changed files with 30 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ export default {
return MESSAGE_STATUS.SENT === this.messageStatus;
},
readableTime() {
return this.messageStamp(this.createdAt, 'LLL d, h:mm a');
return this.messageTimestamp(this.createdAt, 'LLL d, h:mm a');
},
screenName() {
const { additional_attributes: additionalAttributes = {} } =