Style Guide: Additional message examples, a few fixes to enable
This commit is contained in:
parent
6a4acc813c
commit
a563dc8b37
6 changed files with 272 additions and 7 deletions
|
@ -207,12 +207,12 @@
|
|||
return ConversationController.getUnsafe(this.get('conversationId'));
|
||||
},
|
||||
getExpirationTimerUpdateSource() {
|
||||
if (this.isExpirationTimerUpdate()) {
|
||||
const conversationId = this.get('expirationTimerUpdate').source;
|
||||
return ConversationController.getOrCreate(conversationId, 'private');
|
||||
if (!this.isExpirationTimerUpdate()) {
|
||||
throw new Error('Message is not a timer update!');
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
const conversationId = this.get('expirationTimerUpdate').source;
|
||||
return ConversationController.getOrCreate(conversationId, 'private');
|
||||
},
|
||||
getContact() {
|
||||
let conversationId = this.get('source');
|
||||
|
|
|
@ -45,8 +45,10 @@
|
|||
tagName: 'span',
|
||||
className: 'some-failed',
|
||||
templateName: 'some-failed',
|
||||
render_attributes: {
|
||||
someFailed: i18n('someRecipientsFailed'),
|
||||
render_attributes() {
|
||||
return {
|
||||
someFailed: i18n('someRecipientsFailed'),
|
||||
};
|
||||
},
|
||||
});
|
||||
const TimerView = Whisper.View.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue