core: enable creation of direct connections in group for chat protocol v2 (for beta; to be reverted for full release) (#3022)

This commit is contained in:
spaced4ndy 2023-09-06 10:15:32 +04:00 committed by GitHub
parent 43e233f0eb
commit 68f359c904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ supportedChatVRange = mkVersionRange 1 currentChatVersion
-- version that starts support for skipping establishing direct connections in a group
groupNoDirectVersion :: Version
groupNoDirectVersion = 2
groupNoDirectVersion = 3 -- 2
data ConnectionEntity
= RcvDirectMsgConnection {entityConnection :: Connection, contact :: Maybe Contact}

View File

@ -68,16 +68,16 @@ chatGroupTests = do
it "should send delivery receipts in group depending on configuration" testConfigureGroupDeliveryReceipts
describe "direct connections in group are not established based on chat protocol version" $ do
describe "3 members group" $ do
testNoDirect _0 _0 True
testNoDirect _0 _0 False -- True
testNoDirect _0 _1 False
testNoDirect _1 _0 False
testNoDirect _1 _1 False
describe "4 members group" $ do
testNoDirect4 _0 _0 _0 True True True
testNoDirect4 _0 _0 _1 True False False
testNoDirect4 _0 _1 _0 False True False
testNoDirect4 _0 _0 _0 False False False -- True True True
testNoDirect4 _0 _0 _1 False False False -- True False False
testNoDirect4 _0 _1 _0 False False False -- False True False
testNoDirect4 _0 _1 _1 False False False
testNoDirect4 _1 _0 _0 False False True
testNoDirect4 _1 _0 _0 False False False -- False False True
testNoDirect4 _1 _0 _1 False False False
testNoDirect4 _1 _1 _0 False False False
testNoDirect4 _1 _1 _1 False False False