mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Return correct error message when sending server notices (#3594)
Fixes #3502 ### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [x] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [x] Pull request includes a [sign off below](https://element-hq.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed-off-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
parent
0ca63e0650
commit
518697fd87
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ func SendServerNotice(
|
|||
for _, membership := range []string{"join", "invite", "leave"} {
|
||||
userRooms, queryErr := rsAPI.QueryRoomsForUser(ctx, *userID, membership)
|
||||
if queryErr != nil {
|
||||
return util.ErrorResponse(err)
|
||||
return util.ErrorResponse(queryErr)
|
||||
}
|
||||
allUserRooms = append(allUserRooms, userRooms...)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue