RocketChat / RocketChat/Rocket.Chat.ReactNative

chore: Unify usage of openAppSettings

Open
#6,252 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🍭 good first issue 🚚 chore
Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Search for app-settings: and you'll find this

Image

We have openAppSettings though, so we should use it in those places.
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/b1105102f9b2a13b40970b31a6fc011ca9bad158/app/lib/methods/helpers/openAppSettings.ts

Also notice it's a promise. We should handle it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the React Native app for app-settings: and inspect each caller alongside app/lib/methods/helpers/openAppSettings.ts. Replace the direct usage with the shared helper and account for its promise in each location. Done means the identified callers consistently use openAppSettings without unhandled promises.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.