Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isUserMuted(userId: UserId) {
- let cookiesValueString = this.$cookies.get(Config.CookieNames.mutedUsers);
- if (!cookiesValueString)
- return false;
- let mutedUsers = JSON.parse(cookiesValueString) as Array<number>;
- return mutedUsers.some((id) => id === userId);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement