Skip to content

Commit

Permalink
Don't send flag requests when the mailbox is readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 30, 2013
1 parent d649c93 commit 5eb7745
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions imp/js/dimpbase.js
Expand Up @@ -3624,11 +3624,12 @@ var DimpBase = {
params = $H(opts.params),
vs = this._getSelection(opts);

need = vs.get('dataob').any(function(ob) {
return add
? (!ob.flag || !ob.flag.include(flag))
: (ob.flag && ob.flag.include(flag));
});
need = !vs.getBuffer().getMetaData('readonly') &&
vs.get('dataob').any(function(ob) {
return add
? (!ob.flag || !ob.flag.include(flag))
: (ob.flag && ob.flag.include(flag));
});

if (need) {
DimpCore.doAction('flagMessages', this.addViewportParams(params.merge({
Expand Down

0 comments on commit 5eb7745

Please sign in to comment.