mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
refactor(app): name mute and unread state accessors by intent (#1859)
This commit is contained in:
1 parent
52781cfa2d
commit
a2099fb0e2
33 files changed
+173
-490
No files matched your search
@@ -43,7 +43,7 @@ export function useMuteSheet(params: UseMuteSheetParams): UseMuteSheetReturn {
|
||||
const additionalMutePayload = isGuildMode ? undefined : params.additionalMutePayload;
|
||||
const {onMuteSuccess, onUnmuteSuccess, onClose} = params;
|
||||
const muteConfig = isGuildMode
|
||||
? UserGuildSettings.getSettings(guildId)?.mute_config
|
||||
? UserGuildSettings.getSettingsForScope(guildId)?.mute_config
|
||||
: UserGuildSettings.getChannelOverride(guildId, channelId!)?.mute_config;
|
||||
const openMuteSheet = useCallback(() => {
|
||||
setMuteSheetOpen(true);
|
||||
|
||||
Reference in new issue
Block a user