remove gmail-oauth2

- add a device message for existing profiles potentially using gmail
- reset oauth2 method for existing profiles on opening login screen
- do not offer gmail-oauth2 for new profiles
This commit is contained in:
B. Petersen
2024-08-14 15:25:34 +02:00
committed by bjoern
parent 9075c52356
commit a50d8b9f2f
3 changed files with 42 additions and 1 deletions
@@ -260,6 +260,15 @@ public class DcContext {
}
}
public boolean isGmailOauth2Addr(String addr) {
final String oauth2url = getOauth2Url(addr, "chat.delta:/foo");
return isGmailOauth2Url(oauth2url);
}
public boolean isGmailOauth2Url(String oauth2url) {
return oauth2url.startsWith("https://accounts.google.com/");
}
/**
* @return true if at least one chat has location streaming enabled
*/