You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @diegolmello
I am implementing this feature and needed your suggestion on the usage of UserPreference endpoint or basically the function defined in rocketchat.js to get the preferences of user. I mean which is the best place to call this function to sync with the web and store Time format in the local state.
In my current implementation , I used it in the RoomListView . What do you think?
Activity
[-]Add 24 hour time format[/-][+]Add time format option[/+][-]Add time format option[/-][+]Time format option[/+]try-catch-stack commentedon Feb 3, 2022
Hey @diegolmello
I am implementing this feature and needed your suggestion on the usage of
UserPreferenceendpoint or basically the function defined in rocketchat.js to get the preferences of user. I mean which is the best place to call this function to sync with the web and store Time format in the local state.In my current implementation , I used it in the RoomListView . What do you think?
diegolmello commentedon Feb 3, 2022
@try-catch-stack You'll need to save the preference on our local db.
It's very similar to what we do for
'show_message_in_main_thread'and you should use it as example.'clockMode'user preference.We have a couple of custom hooks on web that will help you:
On mobile repo, you can find
settingson Redux and, after you addclockMode, you'll find it onlogin.userreducer.iihimanshuu commentedon Mar 5, 2025
Please assign this issue to me !!
Rohit3523 commentedon Mar 5, 2025
Here you won't get assigned to any issue, If you can fix any issue just open an pull request and attach the issue in PR :)
iihimanshuu commentedon Mar 5, 2025
oh alright