Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: activate community channel link #12653

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

igor-sirotin
Copy link
Contributor

@igor-sirotin igor-sirotin commented Nov 7, 2023

Fixes #12539

What does the PR do

  1. Improve the algorithm of switching to channel by using the known community id
  2. Fix the used chatID for chat lookup, as it should be a concatenation of community id and channel id
  3. Fix the order of processing channel/community in activateStatusDeepLink. Channel should be processed earlier, because communityId is also set
  4. Fix json parsing of channelUuid field
  5. Refactor switching to community/channel to use switchTo function
  6. Works for non-spectated/joined community too!

Screenshot of functionality (including design for comparison)

Screen.Recording.2023-11-08.at.11.51.32.mov

@status-im-auto
Copy link
Member

status-im-auto commented Nov 7, 2023

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 588db3a #1 2023-11-07 22:28:26 ~5 min tests/nim 📄log
✔️ 588db3a #1 2023-11-07 22:30:11 ~6 min macos/aarch64 🍎dmg
✔️ 588db3a #1 2023-11-07 22:33:35 ~10 min tests/ui 📄log
✔️ 588db3a #1 2023-11-07 22:33:56 ~10 min macos/x86_64 🍎dmg
✔️ 588db3a #1 2023-11-07 22:38:23 ~15 min linux/x86_64 📦tgz
✔️ 588db3a #1 2023-11-07 22:55:25 ~32 min tests/e2e 📄log
✔️ 588db3a #1 2023-11-07 22:59:59 ~36 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 0b1e419 #3 2023-11-08 11:56:32 ~5 min tests/nim 📄log
✔️ 0b1e419 #3 2023-11-08 11:58:31 ~7 min macos/aarch64 🍎dmg
✔️ 0b1e419 #3 2023-11-08 12:02:11 ~11 min macos/x86_64 🍎dmg
✔️ 0b1e419 #3 2023-11-08 12:08:20 ~17 min linux/x86_64 📦tgz
✔️ 0b1e419 #3 2023-11-08 12:11:12 ~20 min tests/ui 📄log
✔️ 0b1e419 #3 2023-11-08 12:21:01 ~29 min windows/x86_64 💿exe
✔️ 0b1e419 #3 2023-11-08 12:23:13 ~32 min tests/e2e 📄log
✔️ 67832f9 #4 2023-11-08 15:00:35 ~4 min macos/aarch64 🍎dmg
✔️ 67832f9 #4 2023-11-08 15:02:11 ~6 min tests/nim 📄log
✔️ 67832f9 #4 2023-11-08 15:04:23 ~8 min macos/x86_64 🍎dmg
✔️ 67832f9 #4 2023-11-08 15:06:56 ~11 min tests/ui 📄log
✔️ 67832f9 #4 2023-11-08 15:11:29 ~15 min linux/x86_64 📦tgz
✖️ 67832f9 #4 2023-11-08 15:24:33 ~28 min tests/e2e 📄log
✔️ 67832f9 #4 2023-11-08 15:31:46 ~35 min windows/x86_64 💿exe
✔️ 67832f9 #5 2023-11-08 16:15:59 ~36 min tests/e2e 📄log

src/app/modules/main/module.nim Outdated Show resolved Hide resolved
src/app/modules/main/module.nim Outdated Show resolved Hide resolved
Copy link
Contributor

@borismelnik borismelnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@igor-sirotin
Copy link
Contributor Author

Just noted that it doesn't work for not yet spectated/joined communities. Fixing.

@igor-sirotin
Copy link
Contributor Author

@borismelnik @MishkaRogachev I've updated the PR, please check it out again 🙂

Now switching to a channel of non-spectated/joined community works as well.
And I refactored things to reuse existing switchTo function.

Copy link
Contributor

@MishkaRogachev MishkaRogachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@igor-sirotin igor-sirotin merged commit 4c99ca3 into master Nov 8, 2023
8 of 9 checks passed
@igor-sirotin igor-sirotin deleted the fix/issue-12539-channel-links branch November 8, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support clicking on community channel links
4 participants