Decorate incoming group messages

with numbers and image placeholders, so you know who's saying what.
This commit is contained in:
lilia 2014-10-22 16:14:18 -07:00
parent 78166365c7
commit 19dac1f3df
3 changed files with 24 additions and 1 deletions

View file

@ -24,7 +24,8 @@ var Whisper = Whisper || {};
message: this.model.get('body'),
date: this.formatTimestamp(),
attachments: this.model.get('attachments'),
bubble_class: this.model.get('type') === 'outgoing' ? 'sent' : 'incoming'
bubble_class: this.model.get('type') === 'outgoing' ? 'sent' : 'incoming',
sender: this.model.thread().get('type') === 'group' ? this.model.get('person') : ''
})
);