Skip to content

Commit

Permalink
Make pgpmime-support known after Mailvelope init
Browse files Browse the repository at this point in the history
The support for pgpmime was only checked initially after the login. If a
user e.g. authorizes a domain in Mailvelope only after a login,
Mailvelope now instantly works, instead of (silently and undocumentedly)
requireing a logout+login-cycle.
  • Loading branch information
pabzm committed Jul 24, 2024
1 parent 6b7926c commit 7b5f476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3997,6 +3997,9 @@ function rcube_webmail() {

// Load Mailvelope functionality (and initialize keyring if needed)
this.mailvelope_load = function (action) {
// Make the server code aware that this browser now knows about
// PGP/MIME (would otherwise only be recognized after the next login.
this.env.browser_capabilities.pgpmime = 1;
var keyring = this.env.mailvelope_main_keyring ? undefined : this.env.user_id,
fn = function (kr) {
ref.mailvelope_keyring = kr;
Expand Down

0 comments on commit 7b5f476

Please sign in to comment.