[WIP] Topics

This commit is contained in:
Ali
2022-10-04 18:19:39 +04:00
parent 533085c77a
commit 62697d4ffb
83 changed files with 1974 additions and 1650 deletions

View File

@@ -47,9 +47,9 @@ public enum ExternalJoiningChatState {
}
case invite(Invite)
case alreadyJoined(PeerId)
case alreadyJoined(EnginePeer)
case invalidHash
case peek(PeerId, Int32)
case peek(EnginePeer, Int32)
}
func _internal_joinChatInteractively(with hash: String, account: Account) -> Signal<PeerId?, JoinLinkError> {
@@ -112,7 +112,7 @@ func _internal_joinLinkInformation(_ hash: String, account: Account) -> Signal<E
return updated
})
return .alreadyJoined(peer.id)
return .alreadyJoined(EnginePeer(peer))
})
|> castError(JoinLinkInfoError.self)
}
@@ -124,7 +124,7 @@ func _internal_joinLinkInformation(_ hash: String, account: Account) -> Signal<E
return updated
})
return .peek(peer.id, expires)
return .peek(EnginePeer(peer), expires)
})
|> castError(JoinLinkInfoError.self)
}