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

Prevent referenced messages from replacing cached messages #953

Closed
wants to merge 1 commit into from

Conversation

norinorin
Copy link
Contributor

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

Closes #904

@norinorin norinorin force-pushed the fix/message-reference branch from 739f5a8 to 6115b39 Compare January 1, 2022 16:04
) or self._referenced_messages.get(message.referenced_message.id):
# treat referenced messages as partial
# so it shouldn't replace the full message if cached.
referenced_message.object.update(message.referenced_message)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm unsure if updating it is really needed.

@norinorin norinorin force-pushed the fix/message-reference branch from 6115b39 to d50707d Compare January 1, 2022 16:10
@norinorin
Copy link
Contributor Author

Not sure if I like it; will look for other possible solutions.

@norinorin norinorin marked this pull request as draft January 4, 2022 00:46
@norinorin norinorin force-pushed the fix/message-reference branch from d50707d to cf3449c Compare January 4, 2022 19:19
@norinorin
Copy link
Contributor Author

Closing as I'll leave it stale otherwise.

@norinorin norinorin closed this Jan 4, 2022
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.

Referenced message entries exceed the max messages settings
1 participant