2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 9450
|
|
|
|
|
// Function ID: 9451
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useMessageMaxLength
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [1372, 1074, 4446, 504, 2]
|
|
|
|
|
// Exports: default, getMaxMessageLength
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 9450 (useMessageMaxLength)
|
2026-09-18 19:45:33 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import PremiumUtilsDefault from "PremiumUtils" /* 4446 */;
|
|
|
|
|
import UserStore from "UserStore" /* 1372 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
require = fn;
|
2026-09-26 17:57:22 +00:00
|
|
|
const Constants = fn(1074);
|
2026-09-18 19:45:33 +00:00
|
|
|
({ MAX_MESSAGE_LENGTH_PREMIUM: closure_4, MAX_MESSAGE_LENGTH: hasOwnProperty } = Constants);
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/messages/useMessageMaxLength.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function useMessageMaxLength() {
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [UserStore];
|
|
|
|
|
return initialize.useStateFromStores(items, () => PremiumUtilsDefault.canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_1_4 : closure_1_5);
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|
2026-09-18 19:45:33 +00:00
|
|
|
export const getMaxMessageLength = function getMaxMessageLength() {
|
|
|
|
|
return PremiumUtilsDefault.canUseIncreasedMessageLength(UserStore.getCurrentUser()) ? React4 : hasOwnProperty;
|
|
|
|
|
};
|