|
|
@@ -173,10 +173,12 @@ var AbstractUiMessage = (function() {
|
|
|
_this.dom.attachments.appendChild(attachmentFrag);
|
|
|
if (hasAttachment) {
|
|
|
_this.dom.attachmentWrapper.classList.remove(R.klass.hidden);
|
|
|
- if (CONFIG.shouldExpandAttachment(containImages))
|
|
|
- _this.dom.attachmentWrapper["open"] = true;
|
|
|
- else
|
|
|
- _this.dom.attachmentWrapper["open"] = false;
|
|
|
+ if (!_this.dom.attachmentWrapper.toggled) {
|
|
|
+ if (CONFIG.shouldExpandAttachment(containImages))
|
|
|
+ _this.dom.attachmentWrapper["open"] = true;
|
|
|
+ else
|
|
|
+ _this.dom.attachmentWrapper["open"] = false;
|
|
|
+ }
|
|
|
} else {
|
|
|
_this.dom.attachmentWrapper.classList.add(R.klass.hidden);
|
|
|
}
|