Browse Source

Removed refresh token from search

main
M66B 6 years ago
parent
commit
c9be3a3d6b
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java

+ 0
- 6
app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java View File

@ -129,12 +129,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
EntityAccount account = db.account().getAccount(folder.account);
if (imessages == null) {
// Refresh token
if (account.auth_type == Helper.AUTH_TYPE_GMAIL) {
account.password = Helper.refreshToken(context, "com.google", account.user, account.password);
db.account().setAccountPassword(account.id, account.password);
}
Properties props = MessageHelper.getSessionProperties(context, account.auth_type);
props.setProperty("mail.imap.throwsearchexception", "true");
Session isession = Session.getInstance(props, null);


Loading…
Cancel
Save