This repository has been archived on 2023-06-16 . You can view files and clone it, but cannot push or open issues or pull requests.
2 changed files with
10 additions and
0 deletions
@ -1,3 +1,5 @@
# NOTE: libcwtch-go has been deprecated in favour of [autobindings ](https://git.openprivacy.ca/cwtch.im/autobindings ). This repository has been archived and is no longer maintained.
# libcwtch-go
# libcwtch-go
C-bindings for the Go Cwtch Library.
C-bindings for the Go Cwtch Library.
@ -611,6 +611,14 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
case event . ProtocolEngineCreated :
case event . ProtocolEngineCreated :
// TODO this code should be moved into Cwtch during the API officialization...
// TODO this code should be moved into Cwtch during the API officialization...
settings := ReadGlobalSettings ( )
settings := ReadGlobalSettings ( )
// ensure that protocol engine respects blocking settings...
if settings . BlockUnknownConnections {
profile . BlockUnknownConnections ( )
} else {
profile . AllowUnknownConnections ( )
}
// Now that the Peer Engine is Activated, Share Files
// Now that the Peer Engine is Activated, Share Files
key , exists := profile . GetScopedZonedAttribute ( attr . PublicScope , attr . ProfileZone , constants . CustomProfileImageKey )
key , exists := profile . GetScopedZonedAttribute ( attr . PublicScope , attr . ProfileZone , constants . CustomProfileImageKey )
if exists {
if exists {