In seed.js, must /register main appservice user with homeserver before trying to upload avatar #12
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Synapse automatically registers the main appservice user for me, but this is Synapse being special and this behaviour is not guaranteed by the spec nor implemented by Conduit.
The first step of seed.js should be attempting to register the main appservice user. It's OK if it already exists.
This would also be a great chance to check if the homeserver connection & login actually work, which is a frequent stumbling point of setting up appservices.
Done in
762e482
by adding a register() call to seed.js.Also need to detect this when Conduit is the server. I was sent a private message with Conduit's special error code. I need to add a condition for it.
Conduit's errcode is M_USER_IN_USE because it's a good boy. Condition added in
4dcdd02
.