Page MenuHomePhabricator

D10109.id36957.diff
No OneTemporary

D10109.id36957.diff

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

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)

Event Timeline