|
@@ -427,10 +427,12 @@ class ConversationController {
|
|
|
case 'file':
|
|
|
// Determine file type
|
|
|
let showSendAsFileCheckbox = false;
|
|
|
+ let captionSupported = false;
|
|
|
for (let msg of contents as threema.FileMessageData[]) {
|
|
|
if (!msg.fileType) {
|
|
|
msg.fileType = 'application/octet-stream';
|
|
|
}
|
|
|
+ captionSupported = this.mimeService.isImage(msg.fileType);
|
|
|
if (this.mimeService.isImage(msg.fileType)
|
|
|
|| this.mimeService.isAudio(msg.fileType)
|
|
|
|| this.mimeService.isVideo(msg.fileType)) {
|
|
@@ -456,7 +458,7 @@ class ConversationController {
|
|
|
<md-dialog class="send-file-dialog">
|
|
|
<md-dialog-content class="md-dialog-content">
|
|
|
<h2 class="md-title">${title}</h2>
|
|
|
- <md-input-container md-no-float class="input-caption md-prompt-input-container">
|
|
|
+ <md-input-container md-no-float class="input-caption md-prompt-input-container" ng-show="!${showSendAsFileCheckbox} || ctrl.sendAsFile || ${captionSupported}">
|
|
|
<input md-autofocus ng-keypress="ctrl.keypress($event)" ng-model="ctrl.caption" placeholder="${placeholder}" aria-label="${placeholder}">
|
|
|
</md-input-container>
|
|
|
<md-input-container md-no-float class="input-send-as-file md-prompt-input-container" ng-show="${showSendAsFileCheckbox}">
|