Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3373810
D10486.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
D10486.diff
View Options
diff --git a/lib/shared/keyserver-utils.js b/lib/shared/keyserver-utils.js
--- a/lib/shared/keyserver-utils.js
+++ b/lib/shared/keyserver-utils.js
@@ -76,12 +76,16 @@
state: KeyserverStore,
actionPayload: SetSessionPayload,
): KeyserverInfo {
- const { keyserverID, urlPrefix } = actionPayload;
+ const { keyserverID, urlPrefix, temporary } = actionPayload;
let baseInfo = state.keyserverInfos[keyserverID];
if (!baseInfo) {
baseInfo = {
...defaultKeyserverInfo,
urlPrefix,
+ connection: {
+ ...defaultKeyserverInfo.connection,
+ connectionIssue: temporary ? 'temporarily_connected' : undefined,
+ },
};
}
return baseInfo;
diff --git a/lib/types/session-types.js b/lib/types/session-types.js
--- a/lib/types/session-types.js
+++ b/lib/types/session-types.js
@@ -84,6 +84,7 @@
+logInActionSource: ?LogInActionSource,
+keyserverID: string,
+urlPrefix: string,
+ +temporary?: boolean,
};
export type SessionState = {
diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js
--- a/lib/types/socket-types.js
+++ b/lib/types/socket-types.js
@@ -489,7 +489,8 @@
export type ConnectionIssue =
| 'policy_acknowledgement_socket_crash_loop'
- | 'not_logged_in_error';
+ | 'not_logged_in_error'
+ | 'temporarily_connected';
export type ConnectionInfo = {
+status: ConnectionStatus,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 11:59 AM (20 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590358
Default Alt Text
D10486.diff (1 KB)
Attached To
Mode
D10486: [lib] Make possible to mark ks as temporarily connected
Attached
Detach File
Event Timeline
Log In to Comment