2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 9433
|
|
|
|
|
// Function ID: 9434
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useMessageMaxLength
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1371, 1074, 4294, 504, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, getMaxMessageLength
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 9433 (useMessageMaxLength)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import PremiumUtilsDefault from "PremiumUtils" /* 4294 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import UserStore from "UserStore" /* 1371 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const Constants = fn(1074);
|
|
|
|
|
({ MAX_MESSAGE_LENGTH_PREMIUM: closure_4, MAX_MESSAGE_LENGTH: hasOwnProperty } = Constants);
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/messages/useMessageMaxLength.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useMessageMaxLength() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [UserStore];
|
|
|
|
|
return initialize.useStateFromStores(items, () => PremiumUtilsDefault.canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_1_4 : closure_1_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const getMaxMessageLength = function getMaxMessageLength() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return PremiumUtilsDefault.canUseIncreasedMessageLength(UserStore.getCurrentUser()) ? React4 : hasOwnProperty;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|