-
Notifications
You must be signed in to change notification settings - Fork 990
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
Request to join a community is not canceled after cancellation #21961
Comments
Just to provide more context on this for anyone interested. If the user logs out and logs in, the request to join is successfully cancelled, and the error thrown is:
|
The issue is indeed in status-go, i.e. when sending message to privileged members https://github.com/status-im/status-go/blob/0526d1878a77799e1c71d63d4b34a04c8f185bc0/protocol/messenger_communities.go#L1917. |
The fix is: diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go
index 5796caf0d..89cb3ca6c 100644
--- a/protocol/messenger_communities.go
+++ b/protocol/messenger_communities.go
@@ -1914,6 +1914,7 @@ func (m *Messenger) CancelRequestToJoinCommunity(ctx context.Context, request *r
}
for _, privilegedMember := range privMembersArray {
+ rawMessage.Sender = nil
_, err := m.sender.SendPrivate(context.Background(), privilegedMember, &rawMessage)
if err != nil {
return nil, err
|
@VolodLytvynenko The solution is on the status-side, but I opened a PR on mobile that integrates the solution so that it can be tested: |
Steps to reproduce:
Actual result:
The request is not canceled, and the community remains in the "pending" state.
cancel_com.mp4
Expected result:
The request should be successfully canceled, and the community should no longer appear in the "pending" state.
Logs:
https://drive.google.com/file/d/1eC9KKtV4Em_2W4nW6ZWluhU2pIfkYB6r/view?usp=drive_link
ENV:
Nightly 20 Jan, 2025
The text was updated successfully, but these errors were encountered: