Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33309221
D11149.1768804103.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
385 B
Referenced Files
None
Subscribers
None
D11149.1768804103.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
@@ -1089,6 +1089,9 @@
function roleIsDefaultRole(
roleInfo: ?ClientLegacyRoleInfo | ?RoleInfo,
): boolean {
+ if (roleInfo?.specialRole === specialRoles.DEFAULT_ROLE) {
+ return true;
+ }
return !!(roleInfo && roleInfo.isDefault);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 6:28 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5954864
Default Alt Text
D11149.1768804103.diff (385 B)
Attached To
Mode
D11149: [lib] Update `roleIsDefaultRole` to consider `roleInfo?.specialRole`
Attached
Detach File
Event Timeline
Log In to Comment