12 lines
542 B
TypeScript
12 lines
542 B
TypeScript
// Metro module 16321 (f16322).
|
|
import GuildStore from "../../stores/GuildStore";
|
|
import UserStore from "../../stores/UserStore";
|
|
import { PRELOAD_SERVER_ID } from "./StaffMemberConstants";
|
|
import GuildActionCreators from "../../actions/GuildActionCreators";
|
|
export function preloadStaffMembers() {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
if ((currentUser == null ? void 0 : currentUser.isStaff()) && GuildStore.getGuild(PRELOAD_SERVER_ID) != null) {
|
|
GuildActionCreators.requestMembers(PRELOAD_SERVER_ID, "", 0, false);
|
|
}
|
|
}
|