mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
One more time
This commit is contained in:
parent
29d93f3e91
commit
b323318ae9
|
|
@ -86,7 +86,7 @@ func (m1 *DeviceMessage) DeviceKeysEqual(m2 *DeviceMessage) (bool, error) {
|
|||
return false, nil // different display names
|
||||
}
|
||||
if len(m1.KeyJSON) == 0 || len(m2.KeyJSON) == 0 {
|
||||
return false, nil // both are empty
|
||||
return false, nil // either is empty
|
||||
}
|
||||
return bytes.Equal(m1.KeyJSON, m2.KeyJSON), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue