diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-03-10 13:17:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 13:17:28 +0000 |
commit | e485f9c2bd15bca397229444399fa7e168eca43d (patch) | |
tree | 4efe11f99423ba450371521a8f50d5b4234ba7fe /federationapi/consumers | |
parent | e1881627d18c541bfad0f5dc210b0786b8e55f35 (diff) |
64-bit stream IDs for device list updates (#2267)
Diffstat (limited to 'federationapi/consumers')
-rw-r--r-- | federationapi/consumers/keychange.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/federationapi/consumers/keychange.go b/federationapi/consumers/keychange.go index 22dbc32d..33d716d2 100644 --- a/federationapi/consumers/keychange.go +++ b/federationapi/consumers/keychange.go @@ -203,9 +203,9 @@ func (t *KeyChangeConsumer) onCrossSigningMessage(m api.DeviceMessage) bool { return err == nil } -func prevID(streamID int) []int { +func prevID(streamID int64) []int64 { if streamID <= 1 { return nil } - return []int{streamID - 1} + return []int64{streamID - 1} } |