Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3508471
D6101.id20354.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
D6101.id20354.diff
View Options
diff --git a/keyserver/src/responders/thread-responders.js b/keyserver/src/responders/thread-responders.js
--- a/keyserver/src/responders/thread-responders.js
+++ b/keyserver/src/responders/thread-responders.js
@@ -43,7 +43,7 @@
const threadDeletionRequestInputValidator = tShape({
threadID: t.String,
- accountPassword: tPassword,
+ accountPassword: t.maybe(tPassword),
});
async function threadDeletionResponder(
diff --git a/lib/actions/thread-actions.js b/lib/actions/thread-actions.js
--- a/lib/actions/thread-actions.js
+++ b/lib/actions/thread-actions.js
@@ -23,7 +23,7 @@
callServerEndpoint: CallServerEndpoint,
): ((
threadID: string,
- currentAccountPassword: string,
+ currentAccountPassword: ?string,
) => Promise<LeaveThreadPayload>) => async (
threadID,
currentAccountPassword,
diff --git a/lib/types/thread-types.js b/lib/types/thread-types.js
--- a/lib/types/thread-types.js
+++ b/lib/types/thread-types.js
@@ -292,7 +292,7 @@
export type ThreadDeletionRequest = {
+threadID: string,
- +accountPassword: string,
+ +accountPassword: ?string,
};
export type RemoveMembersRequest = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:20 PM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2689739
Default Alt Text
D6101.id20354.diff (1 KB)
Attached To
Mode
D6101: Soften requirements for password when deleting thread
Attached
Detach File
Event Timeline
Log In to Comment