// Module ID: 12208 // Function ID: 12209 // Name: useTypingUsersIds // Dependencies: [4371, 12207, 1372, 504, 2] // Exports: useTypingUserIds // Module 12208 (useTypingUsersIds) import RelationshipStore from "RelationshipStore" /* 4371 */; import TypingStore from "TypingStore" /* 12207 */; import UserStore from "UserStore" /* 1372 */; const require = globalThis.__r; const require = fn; const size = fn(2); const result = size.fileFinishedImporting("modules/chat/useTypingUsersIds.tsx"); export const useTypingUserIds = function useTypingUserIds(id, arg1) { _require = id; let MAX_SAFE_INTEGER = arg1; if (arg1 === undefined) { const _Number = Number; MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER; } let items = [UserStore, TypingStore, RelationshipStore]; const items1 = [id, MAX_SAFE_INTEGER]; return require("initialize").useStateFromStoresArray(items, () => { const currentUser = UserStore.getCurrentUser(); if (currentUser != null) { id = currentUser.id; } const typingUsers = TypingStore.getTypingUsers(closure_0); const items = []; for (const key10013 in typingUsers) { if (items.length >= MAX_SAFE_INTEGER) { break; } else { let user = UserStore.getUser(key10013); if (null == user) { continue; } else { if (user.id === id) { continue; } else { if (RelationshipStore.isBlockedOrIgnored(user.id)) { continue; } else { let arr = items.push(user.id); continue; } continue; } continue; } continue; } } return items; }, items1); };