mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Return correct error message
Signed-off-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
parent
ee42cb48a4
commit
ee95f5177c
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