decord/source/modules/chat/useTypingUsersIds.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

60 lines
1.7 KiB
TypeScript

// Module ID: 12059
// Function ID: 12060
// Name: useTypingUsersIds
// Dependencies: [4255, 12058, 1371, 504, 2]
// Exports: useTypingUserIds
// Module 12059 (useTypingUsersIds)
import RelationshipStore from "RelationshipStore" /* 4255 */;
import TypingStore from "TypingStore" /* 12058 */;
import UserStore from "UserStore" /* 1371 */;
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);
};