Page MenuHomePhabricator

D10828.diff
No OneTemporary

D10828.diff

diff --git a/native/account/log-in-panel.react.js b/native/account/log-in-panel.react.js
--- a/native/account/log-in-panel.react.js
+++ b/native/account/log-in-panel.react.js
@@ -67,7 +67,7 @@
+loadingStatus: LoadingStatus,
+logInExtraInfo: () => Promise<LogInExtraInfo>,
+dispatchActionPromise: DispatchActionPromise,
- +logIn: (logInInfo: LogInInfo) => Promise<LogInResult>,
+ +legacyLogIn: (logInInfo: LogInInfo) => Promise<LogInResult>,
+getInitialNotificationsEncryptedMessage: (
keyserverID: string,
) => Promise<string>,
@@ -251,15 +251,18 @@
void this.props.dispatchActionPromise(
logInActionTypes,
- this.logInAction({ ...extraInfo, initialNotificationsEncryptedMessage }),
+ this.legacyLogInAction({
+ ...extraInfo,
+ initialNotificationsEncryptedMessage,
+ }),
undefined,
({ calendarQuery: extraInfo.calendarQuery }: LogInStartingPayload),
);
};
- async logInAction(extraInfo: LogInExtraInfo): Promise<LogInResult> {
+ async legacyLogInAction(extraInfo: LogInExtraInfo): Promise<LogInResult> {
try {
- const result = await this.props.logIn({
+ const result = await this.props.legacyLogIn({
...extraInfo,
username: this.usernameInputText,
password: this.passwordInputText,
@@ -384,7 +387,7 @@
const logInExtraInfo = useSelector(nativeLogInExtraInfoSelector);
const dispatchActionPromise = useDispatchActionPromise();
- const callLogIn = useLogIn();
+ const callLegacyLogIn = useLogIn();
const getInitialNotificationsEncryptedMessage =
useInitialNotificationsEncryptedMessage(
nativeNotificationsSessionCreator,
@@ -396,7 +399,7 @@
loadingStatus={loadingStatus}
logInExtraInfo={logInExtraInfo}
dispatchActionPromise={dispatchActionPromise}
- logIn={callLogIn}
+ legacyLogIn={callLegacyLogIn}
getInitialNotificationsEncryptedMessage={
getInitialNotificationsEncryptedMessage
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 2:56 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576473
Default Alt Text
D10828.diff (1 KB)

Event Timeline