-
Notifications
You must be signed in to change notification settings - Fork 249
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
bug_: fix resend type for private group messages #5258
bug_: fix resend type for private group messages #5258
Conversation
Jenkins BuildsClick to see older builds (32)
|
a7a8879
to
c6326cb
Compare
c6326cb
to
1d4aca3
Compare
@@ -288,6 +288,14 @@ func (c *Chat) IsActivePersonalChat() bool { | |||
return c.Active && (c.OneToOne() || c.PrivateGroupChat() || c.Public()) && c.CommunityID == "" | |||
} | |||
|
|||
func (c *Chat) DefaultResendType() common.ResendType { |
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.
@cammellos, the function protocol#GetResendTypeForChat
seems to be a duplicate of this new function you just defined. Shouldn't the places GetResendTypeForChat
is called also use the new implementation you defined that caters for private group chats? If so, probably better would be to remove/replace GetResendTypeForChat
with your DefaultResendType
?
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.
oh yes, I didn't notice it was already there, I assumed it wasn't, I'll use mine since it's tested :)
1d4aca3
to
0ea97e6
Compare
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.
LGTM
6021959
to
a332809
Compare
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.
thank you for the fix!
a332809
to
5b17234
Compare
* chore_: bump go-waku * fix_: fix resend type for private group messages --------- Co-authored-by: Richard Ramos <[email protected]>
--------- Co-authored-by: Richard Ramos <[email protected]>
--------- Co-authored-by: Richard Ramos <[email protected]>
--------- Co-authored-by: Andrea Maria Piana <[email protected]> Co-authored-by: Richard Ramos <[email protected]>
The resend type was wrong for private group chats, leading for those messages not being retried anymore after coming back online.