Skip to content

Commit

Permalink
do not push new users the gmail-oauth2 way
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Aug 14, 2024
1 parent e05ad67 commit e470a94
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/thoughtcrime/securesms/RegistrationActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,16 @@ protected Void doInBackground(Void... voids) {
// and should be whitelisted by the supported oauth2 services
String redirectUrl = "chat.delta:/"+BuildConfig.APPLICATION_ID+"/auth";
oauth2url = dcContext.getOauth2Url(email, redirectUrl);

// remove gmail oauth2
//
// when we decide to remove gmail-oauth2 from core, this can be removed.
// in between, allowing renewal may be advantageous for existing users, allowing smooth updates.
if (oauth2url.startsWith("https://accounts.google.com/")) {
oauth2url = null;
}
// /remove gmail oauth2

return null;
}

Expand Down

0 comments on commit e470a94

Please sign in to comment.