forked from Ivasoft/mattermost-mobile
[Gekidou] bug fixes found with e2e tests (#6130)
* Fix Search users in Create Direct Message * Fix UserListRow style for onPress * Prevent create direct message & browse channels from being dismissed with a swipe * Only display Edit header option when tapping in the channel intro * Fix localization for ThreadFollowButton * Prevent New channel screen from being dismiss with a swipe
This commit is contained in:
@@ -8,6 +8,7 @@ import {updateThreadFollowing} from '@actions/remote/thread';
|
||||
import FormattedText from '@components/formatted_text';
|
||||
import {useServerUrl} from '@context/server';
|
||||
import {useTheme} from '@context/theme';
|
||||
import {t} from '@i18n';
|
||||
import {preventDoubleTap} from '@utils/tap';
|
||||
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
|
||||
import {typography} from '@utils/typography';
|
||||
@@ -60,13 +61,13 @@ function ThreadFollow({isFollowing, teamId, threadId}: Props) {
|
||||
|
||||
const containerStyle = [styles.container];
|
||||
let followTextProps = {
|
||||
id: 'threads.follow',
|
||||
id: t('threads.follow'),
|
||||
defaultMessage: 'Follow',
|
||||
};
|
||||
if (isFollowing) {
|
||||
containerStyle.push(styles.containerActive);
|
||||
followTextProps = {
|
||||
id: 'threads.following',
|
||||
id: t('threads.following'),
|
||||
defaultMessage: 'Following',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user