aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2024-08-16 12:37:59 +0200
committerGitHub <noreply@github.com>2024-08-16 12:37:59 +0200
commit7a4ef240fc8ec97ba957933de3a80e611ad7d1f5 (patch)
treec8946995640907a3ea6e64a8a0509a23b696c69e /userapi
parent8c6cf51b8f6dd0f34ecc0f0b38d5475e2055a297 (diff)
Implement MSC3916 (#3397)
Needs https://github.com/matrix-org/gomatrixserverlib/pull/437
Diffstat (limited to 'userapi')
-rw-r--r--userapi/internal/key_api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/internal/key_api.go b/userapi/internal/key_api.go
index 422898c7..81127481 100644
--- a/userapi/internal/key_api.go
+++ b/userapi/internal/key_api.go
@@ -196,7 +196,7 @@ func (a *UserInternalAPI) QueryDeviceMessages(ctx context.Context, req *api.Quer
if m.StreamID > maxStreamID {
maxStreamID = m.StreamID
}
- if m.KeyJSON == nil || len(m.KeyJSON) == 0 {
+ if len(m.KeyJSON) == 0 {
continue
}
result = append(result, m)