aboutsummaryrefslogtreecommitdiff
path: root/userapi/internal/key_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/internal/key_api.go')
-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)