Open MagsMagnoli opened 2 years ago
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?
@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 settings
on Redux and, after you add clockMode
, you'll find it on login.user
reducer.
Description:
A setting for 24 hour time format exists on the desktop but not the client apps.
Environment Information:
Steps to reproduce:
Expected behavior:
Time is shown in 24 hour format
Actual behavior:
Time is shown in 12 hour format
Additional context:
Tried logging out then back in to the app and that didn't work