refactor: useselectedconversationexpirationtype to useselectedconversationdisappearingmode

pull/2971/head
William Grant 2 years ago
parent a484011acb
commit 029db2d73f

@ -7,7 +7,7 @@ import { resetRightOverlayMode, setRightOverlayMode } from '../../../state/ducks
import { isRightPanelShowing } from '../../../state/selectors/conversations';
import {
useSelectedConversationKey,
useSelectedConversationExpirationType,
useSelectedConversationDisappearingMode,
useSelectedExpireTimer,
useSelectedIsGroup,
useSelectedIsKickedFromGroup,
@ -46,7 +46,7 @@ export const ConversationHeaderTitle = () => {
const isGroup = useSelectedIsGroup();
const members = useSelectedMembers();
const expirationMode = useSelectedConversationExpirationType();
const expirationMode = useSelectedConversationDisappearingMode();
const expireTimer = useSelectedExpireTimer();
const convoName = useConversationUsername(selectedConvoKey);

@ -8,7 +8,7 @@ import { resetRightOverlayMode } from '../../../../../state/ducks/section';
import {
getSelectedConversationExpirationModes,
useSelectedConversationKey,
useSelectedConversationExpirationType,
useSelectedConversationDisappearingMode,
useSelectedExpireTimer,
useSelectedIsGroup,
useSelectedWeAreAdmin,
@ -84,7 +84,7 @@ export const OverlayDisappearingMessages = () => {
const hasOnlyOneMode = Boolean(singleMode && singleMode.length > 0);
const isGroup = useSelectedIsGroup();
const expirationMode = useSelectedConversationExpirationType();
const expirationMode = useSelectedConversationDisappearingMode();
const expireTimer = useSelectedExpireTimer();
const weAreAdmin = useSelectedWeAreAdmin();

@ -312,7 +312,7 @@ export function useSelectedExpireTimer(): number | undefined {
return useSelector((state: StateType) => getSelectedConversation(state)?.expireTimer);
}
export function useSelectedConversationExpirationType():
export function useSelectedConversationDisappearingMode():
| DisappearingMessageConversationModeType
| undefined {
return useSelector((state: StateType) => getSelectedConversation(state)?.expirationMode);

Loading…
Cancel
Save