Skip to content

[FIX] creating room with federated member#23347

Merged
alansikora merged 3 commits intoRocketChat:developfrom
qwertiko:develop
Dec 13, 2021
Merged

[FIX] creating room with federated member#23347
alansikora merged 3 commits intoRocketChat:developfrom
qwertiko:develop

Conversation

@qwertiko
Copy link
Copy Markdown
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
Copy Markdown

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

@bkraul
Copy link
Copy Markdown

bkraul commented Oct 20, 2021

This issue persists on 4.1.0-develop. Please merge.

@bkraul
Copy link
Copy Markdown

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