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

[FIX] creating room with federated member #23347

Merged
merged 3 commits into from
Dec 13, 2021
Merged

[FIX] creating room with federated member #23347

merged 3 commits into from
Dec 13, 2021

Conversation

qwertiko
Copy link
Contributor

@qwertiko qwertiko commented Oct 3, 2021

Proposed changes (including videos or screenshots)

When creating a room with a federated member the local user only has the attributes "_id" and "username" for the event normalizeUser.
In there the attribute emails is called but only defined two lines down.
Moved the definition before the call to resolve "undefined user" error message on room creation.

Issue(s)

#23250

Steps to test or reproduce

Have two servers setup with RocketChat which communicate via Federation.
Create a room with a another user from the other server.

When creating a room with a federated member the local user only has the attributes "_id" and "username" for the event normalizeUser.
In there the attribute emails is called but only defined two lines down.
Moved the definition before the call to resolve  "undefined user" error message on room creation.
@2disbetter
Copy link

Would be nice if we could get this reviewed and merged.

@bkraul
Copy link

bkraul commented Oct 20, 2021

This issue persists on 4.1.0-develop. Please merge.

@bkraul
Copy link

bkraul commented Nov 4, 2021

Is there any particular reason why this PR can't be reviewed and merged?

@alansikora alansikora merged commit e1c527a into RocketChat:develop Dec 13, 2021
@casalsgh casalsgh modified the milestones: 4.3.0, 4.2.2 Dec 13, 2021
ggazzo pushed a commit that referenced this pull request Dec 14, 2021
* Fix creating room with federated member

When creating a room with a federated member the local user only has the attributes "_id" and "username" for the event normalizeUser.
In there the attribute emails is called but only defined two lines down.
Moved the definition before the call to resolve  "undefined user" error message on room creation.

* remove empty line (no traling spaces)
@ggazzo ggazzo mentioned this pull request Dec 14, 2021
@sampaiodiego sampaiodiego mentioned this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants