mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 19:50:37 +00:00
add contributor info for inbox tier styling (#9911)
This commit is contained in:
parent
944e4fe399
commit
505dd4969d
1 changed files with 3 additions and 0 deletions
|
|
@ -239,11 +239,13 @@ export default {
|
|||
user: message.user,
|
||||
uuid: message.uuid,
|
||||
id: message.id,
|
||||
contributor: message.contributor,
|
||||
};
|
||||
|
||||
if (message.sent) {
|
||||
newMessage.user = this.user.profile.name;
|
||||
newMessage.uuid = this.user._id;
|
||||
newMessage.contributor = this.user.contributor;
|
||||
}
|
||||
|
||||
if (newMessage.text) conversations[userId].messages.push(newMessage);
|
||||
|
|
@ -306,6 +308,7 @@ export default {
|
|||
timestamp: new Date(),
|
||||
user: this.user.profile.name,
|
||||
uuid: this.user._id,
|
||||
contributor: this.user.contributor,
|
||||
});
|
||||
|
||||
this.activeChat = convoFound.messages;
|
||||
|
|
|
|||
Loading…
Reference in a new issue