Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/containers/ImageViewer/ImageViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const styles = StyleSheet.create({
});

export const ImageViewer = ({ uri = '', width, height, ...props }: ImageViewerProps): React.ReactElement => {
const [autoplayGifs] = useUserPreferences<boolean>(AUTOPLAY_GIFS_PREFERENCES_KEY);
const [autoplayGifs] = useUserPreferences<boolean>(AUTOPLAY_GIFS_PREFERENCES_KEY, true);
const [isPlaying, setIsPlaying] = useState<boolean>(!!autoplayGifs);
const expoImageRef = useRef<Image>(null);

Expand Down
2 changes: 1 addition & 1 deletion app/containers/markdown/components/mentions/AtMention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IAtMention {

const AtMention = React.memo(({ mention, mentions, username, navToRoomInfo, style = [], useRealName }: IAtMention) => {
const { theme } = useTheme();
const [mentionsWithAtSymbol] = useUserPreferences<boolean>(USER_MENTIONS_PREFERENCES_KEY);
const [mentionsWithAtSymbol] = useUserPreferences<boolean>(USER_MENTIONS_PREFERENCES_KEY, false);
const preffix = mentionsWithAtSymbol ? '@' : '';
if (mention === 'all' || mention === 'here') {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/containers/markdown/components/mentions/Hashtag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface IHashtag {

const Hashtag = React.memo(({ hashtag, channels, navToRoomInfo, style = [] }: IHashtag) => {
const { theme } = useTheme();
const [roomsWithHashTagSymbol] = useUserPreferences<boolean>(ROOM_MENTIONS_PREFERENCES_KEY);
const [roomsWithHashTagSymbol] = useUserPreferences<boolean>(ROOM_MENTIONS_PREFERENCES_KEY, false);
const isMasterDetail = useAppSelector(state => state.app.isMasterDetail);
const preffix = roomsWithHashTagSymbol ? '#' : '';
const handlePress = async () => {
Expand Down
4 changes: 2 additions & 2 deletions app/views/AccessibilityAndAppearanceView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export type TAlertDisplayType = 'TOAST' | 'DIALOG';
const AccessibilityAndAppearanceView = () => {
const navigation = useNavigation<NativeStackNavigationProp<AccessibilityStackParamList>>();
const isMasterDetail = useAppSelector(state => state.app.isMasterDetail as boolean);
const [mentionsWithAtSymbol, setMentionsWithAtSymbol] = useUserPreferences<boolean>(USER_MENTIONS_PREFERENCES_KEY);
const [roomsWithHashTagSymbol, setRoomsWithHashTagSymbol] = useUserPreferences<boolean>(ROOM_MENTIONS_PREFERENCES_KEY);
const [mentionsWithAtSymbol, setMentionsWithAtSymbol] = useUserPreferences<boolean>(USER_MENTIONS_PREFERENCES_KEY, false);
const [roomsWithHashTagSymbol, setRoomsWithHashTagSymbol] = useUserPreferences<boolean>(ROOM_MENTIONS_PREFERENCES_KEY, false);
const [autoplayGifs, setAutoplayGifs] = useUserPreferences<boolean>(AUTOPLAY_GIFS_PREFERENCES_KEY, true);
const [alertDisplayType, setAlertDisplayType] = useUserPreferences<TAlertDisplayType>(
ALERT_DISPLAY_TYPE_PREFERENCES_KEY,
Expand Down
Loading