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 @@ -1709,7 +1709,7 @@ }); return roleNamesToMemberCount; - }, [threadInfo]); + }, [threadInfo.members, threadInfo.roles]); } function useRoleNamesToSpecialRole(threadInfo: ThreadInfo): { @@ -1769,7 +1769,7 @@ }); return roleNamesToPermissions; - }, [threadInfo]); + }, [threadInfo.roles]); } function communityOrThreadNoun(threadInfo: RawThreadInfo | ThreadInfo): string {