mattermost-mobile/app/actions/remote/entry
Kyriakos Z b2d838d3da
MM-37110: handle toggling of CRT feature (#6382)
* MM-37110: handle toggling of CRT feature

When a user toggles CRT on/off the app should truncate affected tables,
and re-fetch data.

Truncated tables:
- POST
- POSTS_IN_CHANNEL
- POSTS_IN_THREAD
- THREAD
- THREADS_IN_TEAM
- THREAD_PARTICIPANT
- MY_CHANNEL

After truncation `entry` is called again. We must make sure though that
we save the CRT change before calling `entry` again, or we end up with
infinite recursion.

PS the UI seems to handle the change rather good

* Fixes appEntry and popToRoot

* Small refactor

* Fixes since param on appEntry

* Further refactoring

* Delete unneeded return type

* Removes shouldPopToRoot from appEntry

* Addresses review comments
2022-07-07 12:19:02 +02:00
..
app.ts Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
common.ts MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
index.ts [Gekidou] push notifications (#5779) 2021-10-27 17:53:11 -03:00
login.ts Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
notification.ts Set theme when opening the app from a push notification (#6398) 2022-06-17 14:52:55 -04:00