Skip to content
Snippets Groups Projects
Verified Commit 67d39691 authored by Joe Donofry's avatar Joe Donofry
Browse files

Fix Room v3 Issue

This at least partially addresses #3.  I have a feeling that
additional updates will be needed at some point, but this
fixes the issue where mtxclient would throw an exception for
unrecognized event id formats, which caused nheko to crash.
parent cf7928ef
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,10 @@ parse(const std::string &id)
identifier.hostname_ = id.substr(parts + 1);
identifier.id_ = id;
} else {
throw std::invalid_argument(id + ": invalid format\n");
// V3 event ids don't use ':' at all, don't parse them the same way.
identifier.localpart_ = id;
identifier.hostname_ = id;
identifier.id_ = id;
}
return identifier;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment