Handle chat push notifications and navigate to GlobalChat

This commit is contained in:
Adolfo Reyna
2026-02-22 23:31:33 -05:00
parent 5e05cba3ad
commit 24515caf70

3
App.js
View File

@@ -135,6 +135,9 @@ const MainNavigation = ({ route }) => {
if (data.post_id) { if (data.post_id) {
mainNavigation.navigate("SinglePost", { postid: data.post_id }); mainNavigation.navigate("SinglePost", { postid: data.post_id });
} }
if (data.type === "chat") {
mainNavigation.navigate("GlobalChat");
}
} catch (error) { } catch (error) {
alert("Error: " + error); alert("Error: " + error);
} }