-
Notifications
You must be signed in to change notification settings - Fork 16
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: undefined member access on group actions and hide left members from chat list #1177
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for testitori ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for teritori-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
data={searchResults.filter((result) => { | ||
if ( | ||
result?.type === "group" && | ||
(!result?.members || result?.members.filter(Boolean).length === 0) // Hiding conversation from left member of the group |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, quite complex logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when user leave group, got members array with single 'undefined' element so filtered it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better fix at root of problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
weshd/go/shared/shared.go
Outdated
@@ -168,7 +168,6 @@ func StartHTTPServer() { | |||
|
|||
if err := httpServer.ListenAndServe(); err != nil { | |||
log.Println("weshnet: http listenAndServer err", err) | |||
panic(errors.Wrap(err, "failed to start http server")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this still required or at least a good idea to have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's good to have but having it crashed app when disabling chat via toggle switch on android
3c88a45
to
2cfdadc
Compare
dependent on PR #1167
fix #1192