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: conv admin for unconnected user [WPB-3043] #1955

Merged
merged 9 commits into from
Jul 18, 2023

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Jul 18, 2023

BugWPB-3043 A group admin cannot remove a user from a group when they are not connected to that user


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

When user is BLOCKED or NOT CONNECTED we don't show group admin options on other user profile

Causes (Optional)

We cannot remove user from conversation or change his role

Solutions

Don't depend on user connection status to show group tab

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)

Before After
before after

@Garzas Garzas self-assigned this Jul 18, 2023
@AndroidBob
Copy link
Collaborator

Build 1 failed.

@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2023

Unit Test Results

  71 files    71 suites   54s ⏱️
482 tests 481 ✔️ 1 💤 0

Results for commit 57395aa.

♻️ This comment has been updated with latest results.

@Garzas Garzas requested a review from alexandreferris July 18, 2023 12:57
@saleniuk
Copy link
Contributor

saleniuk commented Jul 18, 2023

On this "after" screen the group info part looks like it's out of place, can you ask Wolfgang how it should look in such case when we are not connected but need to show the group member info for that user?

EDIT: Thanks @Garzas for showing me designs

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

OtherUserProfileTabItem.DETAILS ->
OtherUserProfileDetails(state, otherUserProfileScreenState, lazyListStates[tabItem]!!)
Column {
OtherUserConnectionStatusInfo(state.connectionState, state.membership)
Copy link
Contributor

@saleniuk saleniuk Jul 18, 2023

Choose a reason for hiding this comment

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

Now, with extracting OtherUserConnectionStatusInfo out of the Crossfade we no longer have a "fade" animation when user clicks "connect" and the connection state changes - if that's fine then it can be accepted, but I always cry inside a little when someone decreases the overall user experience level 😄

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 5 succeeded.

The build produced the following APK's:

@Garzas Garzas enabled auto-merge (squash) July 18, 2023 14:24
@AndroidBob
Copy link
Collaborator

Build 7 failed.

@Garzas Garzas merged commit 73009c6 into release/candidate Jul 18, 2023
@Garzas Garzas deleted the fix/conv-admin-for-unconnected-user branch July 18, 2023 18:43
@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 8 succeeded.

The build produced the following APK's:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants