Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3372377
D10109.id36957.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
962 B
Referenced Files
None
Subscribers
None
D10109.id36957.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -32,6 +32,7 @@
permissionsToBitmaskHex,
threadPermissionsFromBitmaskHex,
} from '../permissions/minimally-encoded-thread-permissions.js';
+import { specialRoles } from '../permissions/special-roles.js';
import {
permissionLookup,
getAllThreadPermissions,
@@ -363,12 +364,15 @@
makePermissionsBlob(permissions, null, threadID, threadType),
threadID,
);
- const role: RoleInfo = minimallyEncodeRoleInfo({
- id: `${threadID}/role`,
- name: 'Members',
- permissions,
- isDefault: true,
- });
+ const role: RoleInfo = {
+ ...minimallyEncodeRoleInfo({
+ id: `${threadID}/role`,
+ name: 'Members',
+ permissions,
+ isDefault: true,
+ }),
+ specialRole: specialRoles.DEFAULT_ROLE,
+ };
const rawThreadInfo: RawThreadInfo = {
minimallyEncoded: true,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 6:21 AM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2589134
Default Alt Text
D10109.id36957.diff (962 B)
Attached To
Mode
D10109: [lib] Update thread-utils to include specialRole field
Attached
Detach File
Event Timeline
Log In to Comment