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

Send a 'm.new_device' when we get a message for an unknown group session #204

Merged
merged 7 commits into from
Sep 15, 2016

Conversation

NegativeMjark
Copy link
Contributor

@NegativeMjark NegativeMjark commented Sep 14, 2016

This should reduce the risk of a device getting permanently stuck unable
to receive encrypted group messages.

TODO:

  • Ratelimit the OH HAIs
  • Set a device_id in the outbound m.room.encrypted events so that the recipients know who to spam with OH HAIs.

@ara4n
Copy link
Member

ara4n commented Sep 15, 2016

This feels a bit clunky in that the problematic message will still be dropped on the floor, even if subsequent ones are then okay. But it's better than it ending up stuck forever.

LGTM.

Copy link
Member

@ara4n ara4n left a comment

Choose a reason for hiding this comment

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

lgtm modulo typo

} else {
// We've got a message for a session we don't have.
// Maybe the sender forgot to tell us about the session.
// Remind the sender that we exists so that they might
Copy link
Member

Choose a reason for hiding this comment

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

*exist

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.

2 participants