File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
examples/SampleApp/src/components/Reminders Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,11 @@ export const ReminderItem = (
105105 const resultChannel = client . channel ( channel ?. type , channel ?. id ) ;
106106 await resultChannel ?. watch ( ) ;
107107
108- // TODO: Handle thread navigation if needed
109- navigation . navigate ( 'ChannelScreen' , { channel : resultChannel } ) ;
108+ if ( message . parent_id ) {
109+ // TODO: Handle thread navigation
110+ } else {
111+ navigation . navigate ( 'ChannelScreen' , { channel : resultChannel } ) ;
112+ }
110113 }
111114 } ;
112115
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ export const RemindersList = () => {
4141 } , [ items ] ) ;
4242
4343 useEffect ( ( ) => {
44- if ( ! isFocused ) {
45- return ;
44+ if ( isFocused ) {
45+ client . reminders . paginator . sort = { remind_at : 1 } ;
46+ client . reminders . queryNextReminders ( ) ;
4647 }
47- client . reminders . paginator . sort = { remind_at : 1 } ;
48- } , [ client . reminders . paginator , isFocused ] ) ;
48+ } , [ client . reminders , isFocused ] ) ;
4949
5050 const onEndReached = useCallback ( ( ) => {
5151 client . reminders . paginator . next ( ) ;
You can’t perform that action at this time.
0 commit comments