Skip to content

Commit

Permalink
CBG-3253: Add CBMobileReplicationV4 (#6583)
Browse files Browse the repository at this point in the history
* Add CBMobileReplicationV4 const

* Ensure TestAllowedAttachments works with v4 replicator version
  • Loading branch information
bbrks authored Nov 24, 2023
1 parent 3cec600 commit ad74e7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,8 @@ func TestAllowedAttachments(t *testing.T) {
{"TestAllowedAttachmentsCBMobile2AttVer2", CBMobileReplicationV2, AttVersion2},
{"TestAllowedAttachmentsCBMobile3AttVer1", CBMobileReplicationV3, AttVersion1},
{"TestAllowedAttachmentsCBMobile3AttVer2", CBMobileReplicationV3, AttVersion2},
{"TestAllowedAttachmentsCBMobile4AttVer1", CBMobileReplicationV4, AttVersion1},
{"TestAllowedAttachmentsCBMobile4AttVer2", CBMobileReplicationV4, AttVersion2},
}

isAllowedAttachment := func(ctx *BlipSyncContext, key string) bool {
Expand Down
2 changes: 2 additions & 0 deletions db/blip_subprotocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const (
CBMobileReplicationV2 CBMobileSubprotocolVersion = iota + 2
// CBMobileReplicationV3 minor changes to support revocation and ISGR
CBMobileReplicationV3
// Version Vectors/HLV
CBMobileReplicationV4

// _nextCBMobileSubprotocolVersions reserved for maxCBMobileSubprotocolVersion
_nextCBMobileSubprotocolVersions
Expand Down

0 comments on commit ad74e7e

Please sign in to comment.