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
Cannot invite user to federated room #17273
Comments
I think this is related to #16396. @alansikora i suspect you also want this resolved |
Hello. |
The fact i'm using 3.0.10 is literally the first line of my bug report @1rV1N-git. |
@ndroo |
Oh? if this is actually fixed there ill work towards merging that in on our side. I couldn't find any indication that the upgrade would help though? |
Can you point at the specific commit? If you're talking about the typo commit (ccec102) this is already merged into 3.0.10. So i still think i'm reporting a new issue. |
hm. Maybe it is another bug. |
Yeah agreed. |
So i looked into this, the issue is the user being added (Server B, user 2) doesnt have the federation attribute on their user object, because they're just a local (non federated) user at this time. This is happening on this line.
I wrote a bit of code that deals with this and resolves the issue i've encountered, i'll submit a PR shortly. |
This has been solved in a PR we're going to be sending over in a few days. Please see my comments in the rocketchat federated room channel for more info (messages dated april 18th 2020). |
Using RC 3.0.10
Unless I've first had a direct message conversation between two users across federated servers, i cannot invite users into my federated channels.
Steps to reproduce:
You will see in the logs
server.js:204 Federation ➔ client.error afterAddedToRoom => Could not add user: TypeError: Cannot read property 'origin' of undefined
at app/federation/server/hooks/afterAddedToRoom.js:48:58
at Array.map ()
at app/federation/server/hooks/afterAddedToRoom.js:48:34
at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
This is because User 2 from Server B does not exist on Server A.
To make it work anyway...
I think we just need step 7 from above to create the user on the peer server(s) when doing the invite in order to resolve this issue.
The text was updated successfully, but these errors were encountered: