Fix bug where mail content frame couldn't be reset in some corner cases (#5608)

pull/30/merge
Aleksander Machniak 7 years ago
parent 5b57043cbf
commit 78237c84b4

@ -4,6 +4,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where image data URIs in css style were treated as evil/remote in mail preview (#5580)
- Fix bug where external content in src attribute of input/video tags was not secured (#5583)
- Fix PHP error on update of a contact with multiple email addresses when using PHP 7.1 (#5587)
- Fix bug where mail content frame couldn't be reset in some corner cases (#5608)
RELEASE 1.3-beta
----------------

@ -3353,7 +3353,8 @@ function rcube_webmail()
var r_uids = [],
post_data = this.selection_post_data({_uid: this.uids_to_list(a_uids), _flag: 'delete'}),
lock = this.display_message(this.get_label('markingmessage'), 'loading'),
rows = this.message_list ? this.message_list.rows : {},
list = this.message_list,
rows = list ? list.rows : {},
count = 0;
for (var i=0, len=a_uids.length; i<len; i++) {
@ -3364,7 +3365,7 @@ function rcube_webmail()
if (this.env.skip_deleted) {
count += this.update_thread(uid);
this.message_list.remove_row(uid, (this.env.display_next && i == this.message_list.selection.length-1));
list.remove_row(uid, (this.env.display_next && i == list.selection.length-1));
}
else
this.set_message(uid, 'deleted', true);
@ -3372,9 +3373,9 @@ function rcube_webmail()
}
// make sure there are no selected rows
if (this.env.skip_deleted && this.message_list) {
if (!this.env.display_next)
this.message_list.clear_selection();
if (this.env.skip_deleted && list) {
if (!this.env.display_next || !list.rowcount)
list.clear_selection();
if (count < 0)
post_data._count = (count*-1);
else if (count > 0)

Loading…
Cancel
Save