We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab2e9f6 commit 00b0dadCopy full SHA for 00b0dad
packages/app/src/app/overmind/namespaces/live/liveMessageOperators.ts
@@ -129,6 +129,11 @@ export const onUserLeft: Operator<LiveMessage<{
129
return;
130
}
131
132
+ if (state.live.followingUserId === data.left_user_id) {
133
+ // Unfollow user if they are the one who left
134
+ actions.live.onStopFollow();
135
+ }
136
+
137
if (!state.live.notificationsHidden) {
138
const { users } = state.live.roomInfo;
139
const user = users ? users.find(u => u.id === data.left_user_id) : null;
0 commit comments