mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Do not redirect to conversations page if leaving a group
This commit is contained in:
parent
856621fe06
commit
5d7327ef26
2 changed files with 23 additions and 24 deletions
|
@ -27,7 +27,7 @@ import { useToast } from "react-native-toast-notifications";
|
|||
import MessageIcon from "../../icons/MessageIcon/MessageIcon";
|
||||
|
||||
export default function CustomDrawerContent(props: {}) {
|
||||
const debug = false;
|
||||
const debug = true;
|
||||
const navigation = useNavigation<RootDrawerParamList>();
|
||||
const status = useSelector((state: RootState) => state.status);
|
||||
const dispatch = useDispatch();
|
||||
|
@ -143,7 +143,7 @@ export default function CustomDrawerContent(props: {}) {
|
|||
<DrawerButton
|
||||
onPress={async () => {
|
||||
// We don't clear student statuses when logging out on debug
|
||||
if (!debug) {
|
||||
if (debug) {
|
||||
queryClient.clear();
|
||||
dispatch(logout());
|
||||
await AsyncStorage.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue