|
89 | 89 | senderName = 'Forsta';
|
90 | 90 | } else {
|
91 | 91 | const sender = await this.model.getSender();
|
| 92 | + console.log(sender); |
92 | 93 | senderName = sender.getName();
|
93 |
| - avatar = await sender.getAvatar(); |
| 94 | + avatar = await sender.getAvatar({nolink: this.disableSenderInfo}); |
94 | 95 | }
|
95 | 96 | const attrs = F.View.prototype.render_attributes.call(this);
|
96 | 97 | const replies = await Promise.all(this.model.replies.map(async reply => {
|
97 | 98 | const sender = await reply.getSender();
|
98 | 99 | return Object.assign({
|
99 | 100 | senderName: sender.getName(),
|
100 | 101 | senderInitials: sender.getInitials(),
|
101 |
| - avatar: await sender.getAvatar() |
| 102 | + avatar: await sender.getAvatar({nolink: this.disableSenderInfo}) |
102 | 103 | }, reply.attributes);
|
103 | 104 | }));
|
104 | 105 | let actions = this.model.get('actions');
|
|
115 | 116 | replies,
|
116 | 117 | safe_html: attrs.safe_html && F.emoji.replace_unified(attrs.safe_html),
|
117 | 118 | actions,
|
| 119 | + disableMessageInfo: this.disableMessageInfo, |
| 120 | + disableSenderInfo: this.disableSenderInfo |
118 | 121 | });
|
119 | 122 | },
|
120 | 123 |
|
|
399 | 402 | },
|
400 | 403 |
|
401 | 404 | onDisplayToggle: function(ev) {
|
| 405 | + console.log("here"); |
402 | 406 | const $section = this.$('section');
|
403 | 407 | const $minIcon = this.$('.f-display-toggle.minimize');
|
404 | 408 | const $maxIcon = this.$('.f-display-toggle.maximize');
|
|
664 | 668 | options.reverse = true;
|
665 | 669 | options.remove = false;
|
666 | 670 | F.ListView.prototype.initialize.call(this, options);
|
| 671 | + this.ItemView.prototype.disableMessageInfo = options.disableMessageInfo; |
| 672 | + this.ItemView.prototype.disableSenderInfo = options.disableSenderInfo; |
667 | 673 | this.onScroll = this._onScroll.bind(this);
|
668 | 674 | this.onTouchStart = this._onTouchStart.bind(this);
|
669 | 675 | this.onTouchEnd = this._onTouchEnd.bind(this);
|
|
0 commit comments