core: change logic of checking if peer supports feature (check if peer version is compatible) (#3024)

This commit is contained in:
spaced4ndy
2023-09-06 17:48:37 +04:00
committed by GitHub
parent e6baca5610
commit b6c23b59ca
8 changed files with 32 additions and 44 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ currentChatVersion = 2
supportedChatVRange :: VersionRange
supportedChatVRange = mkVersionRange 1 currentChatVersion
-- version that starts support for skipping establishing direct connections in a group
groupNoDirectVersion :: Version
groupNoDirectVersion = 3 -- 2
-- version range that supports skipping establishing direct connections in a group
groupNoDirectVRange :: VersionRange
groupNoDirectVRange = mkVersionRange 2 currentChatVersion
data ConnectionEntity
= RcvDirectMsgConnection {entityConnection :: Connection, contact :: Maybe Contact}