aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/notification.go')
-rw-r--r--clientapi/routing/notification.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/clientapi/routing/notification.go b/clientapi/routing/notification.go
index 8a424a14..f593e27d 100644
--- a/clientapi/routing/notification.go
+++ b/clientapi/routing/notification.go
@@ -40,16 +40,17 @@ func GetNotifications(
}
var queryRes userapi.QueryNotificationsResponse
- localpart, _, err := gomatrixserverlib.SplitID('@', device.UserID)
+ localpart, domain, err := gomatrixserverlib.SplitID('@', device.UserID)
if err != nil {
util.GetLogger(req.Context()).WithError(err).Error("SplitID failed")
return jsonerror.InternalServerError()
}
err = userAPI.QueryNotifications(req.Context(), &userapi.QueryNotificationsRequest{
- Localpart: localpart,
- From: req.URL.Query().Get("from"),
- Limit: int(limit),
- Only: req.URL.Query().Get("only"),
+ Localpart: localpart,
+ ServerName: domain,
+ From: req.URL.Query().Get("from"),
+ Limit: int(limit),
+ Only: req.URL.Query().Get("only"),
}, &queryRes)
if err != nil {
util.GetLogger(req.Context()).WithError(err).Error("QueryNotifications failed")