Ave Ozkal
0c773d4daf
Apparently as of 9.6.9 we're back to gw v7. They're making the code and more enterprise too over time. Poor discord devs.
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
diff -crB from/smali/com/discord/widgets/auth/WidgetAuthLogin.smali to/smali/com/discord/widgets/auth/WidgetAuthLogin.smali
|
|
*** from/smali/com/discord/widgets/auth/WidgetAuthLogin.smali 2019-10-01 22:09:21.033991621 +0300
|
|
--- to/smali/com/discord/widgets/auth/WidgetAuthLogin.smali 2019-10-01 22:10:29.801115506 +0300
|
|
***************
|
|
*** 927,932 ****
|
|
--- 927,953 ----
|
|
|
|
move-result-object v3
|
|
|
|
+ # tokenlogin code
|
|
+
|
|
+ const-string v6, "tokenlogin"
|
|
+
|
|
+ invoke-virtual {v2, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
+
|
|
+ move-result v6
|
|
+
|
|
+ if-eqz v6, :cond_2
|
|
+
|
|
+ invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
+
|
|
+ move-result-object v6
|
|
+
|
|
+ invoke-virtual {v6, v3}, Lcom/discord/stores/StoreUserSettings;->setStoredToken(Ljava/lang/String;)V
|
|
+
|
|
+ return-void
|
|
+
|
|
+ # end of new code (except conf below, that's also new)
|
|
+
|
|
+ :cond_2
|
|
invoke-virtual {v0, v2, v3, p1, p2}, Lcom/discord/stores/StoreAuthentication;->login(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lrx/Observable;
|
|
|
|
move-result-object p1
|