Review fixes

This commit is contained in:
harshil Sharma 2023-11-15 15:20:01 +05:30
parent 4af2ad2f69
commit e0239a0e76
3 changed files with 5 additions and 9 deletions

View file

@ -5,7 +5,6 @@ import {Database, Q} from '@nozbe/watermelondb';
import {of as of$, combineLatest} from 'rxjs';
import {switchMap, distinctUntilChanged} from 'rxjs/operators';
import {logDebug} from '@app/utils/log';
import {Database as DatabaseConstants, General, Permissions} from '@constants';
import {isDMorGM} from '@utils/channel';
import {hasPermission} from '@utils/role';
@ -69,9 +68,6 @@ export function observePermissionForTeam(database: Database, team: TeamModel | u
return observeMyTeam(database, team.id).pipe(
switchMap((myTeam) => {
const rolesArray = [...user.roles.split(' ')];
logDebug(`user.roles: ${user.roles}`);
if (myTeam) {
rolesArray.push(...myTeam.roles.split(' '));
}

View file

@ -32,15 +32,15 @@ export const NoCommonTeamForm = ({
defaultMessage: 'Group Message cannot be converted to a channel because members are not a part of the same team. Add all members to a single team to convert this group message to a channel.',
});
const handleOnPress = useCallback(preventDoubleTap(() => {
popTopScreen();
}), []);
const buttonText = formatMessage({
id: 'generic.back',
defaultMessage: 'back',
});
const handleOnPress = useCallback(preventDoubleTap(() => {
popTopScreen();
}), []);
return (
<View style={containerStyles}>
<MessageBox

View file

@ -29,7 +29,7 @@ export const labels = {
},
description: {
id: t('post_priority.picker.label.request_ack.description'),
defaultMessage: 'An acknowledgement button will appear with your message',
defaultMessage: 'An acknowledgement button will appear with your message An acknowledgement button will appear with your message An acknowledgement button will appear with your message',
},
},
persistentNotifications: {