From 46ee823fd911f583ff76ef5d1167979070979662 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 12 Oct 2019 10:23:14 +0200 Subject: [PATCH] Archive: Fix bug where next email was not displayed after Archive button use (#6965) --- CHANGELOG | 1 + plugins/archive/archive.js | 5 +++-- plugins/archive/composer.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 5d20244c4..86dc1b9b7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,7 @@ CHANGELOG Roundcube Webmail - Elastic: Fix position and style of auto-complete dropdown on small screens (#6951) - Elastic: Fix initial focus on recipients input in mail compose screen - Redis: Improve error handling and phpredis 5.X support (#6888) +- Archive: Fix bug where next email was not displayed after Archive button use (#6965) - Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942) - Fix so an error is loogged when encryption fails (#6948) diff --git a/plugins/archive/archive.js b/plugins/archive/archive.js index f8b280412..12f519a4c 100644 --- a/plugins/archive/archive.js +++ b/plugins/archive/archive.js @@ -26,14 +26,15 @@ function rcmail_archive(prop) if (!post_data._uid) return; - rcmail.show_contentframe(false); - // Disable message command buttons until a message is selected rcmail.enable_command(rcmail.env.message_commands, false); rcmail.enable_command('plugin.archive', false); // let the server sort the messages to the according subfolders rcmail.with_selected_messages('move', post_data, null, 'plugin.move2archive'); + + // Reset preview (must be after with_selected_messages() call) + rcmail.show_contentframe(false); } function rcmail_is_archive() diff --git a/plugins/archive/composer.json b/plugins/archive/composer.json index 25010825c..ca53d9e4f 100644 --- a/plugins/archive/composer.json +++ b/plugins/archive/composer.json @@ -3,7 +3,7 @@ "type": "roundcube-plugin", "description": "This adds a button to move the selected messages to an archive folder. The folder (and the optional structure of subfolders) can be selected in the settings panel.", "license": "GPLv3+", - "version": "3.3", + "version": "3.4", "authors": [ { "name": "Thomas Bruederli",