Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail/js): force use html format when reply email
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Mar 6, 2023
1 parent 0678f60 commit 284f41f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tine20/Felamimail/js/MessageEditDialog.js
Expand Up @@ -425,9 +425,9 @@ Tine.Felamimail.MessageEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
initContent: function (message) {
if (!this.record.get('body')) {
const account = Tine.Tinebase.appMgr.get('Felamimail').getAccountStore().getById(this.record.get('account_id'));
let format = message === undefined
? account && account.get('compose_format') !== '' ? 'text/' + account.get('compose_format') : 'text/html'
: message.getBodyType();
// we follow the account compose_format when fetch msg failed
let format = account && account.get('compose_format') !== '' ? 'text/' + account.get('compose_format') :
message.getBodyType();

if (!this.msgBody) {
message = this.getMessageFromConfig();
Expand All @@ -436,7 +436,7 @@ Tine.Felamimail.MessageEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
// format of the received message. this is the format to preserve
format = message.get('body_content_type');
}
if (!message.bodyIsFetched() || format !== message.getBodyType()) {
if (!message.bodyIsFetched()) {
// self callback when body needs to be (re) fetched
return this.recordProxy.fetchBody(message, format, {
success: this.initContent.createDelegate(this),
Expand Down

0 comments on commit 284f41f

Please sign in to comment.