Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356130
D10828.id36833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10828.id36833.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 5:02 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576473
Default Alt Text
D10828.id36833.diff (1 KB)
Attached To
Mode
D10828: [native] rename logIn -> legacyLogIn
Attached
Detach File
Event Timeline
Log In to Comment