Files
status-go/pkg/messaging/adapters/encryption_subscriptions.go
Igor Sirotin 0fcf4ceb8e refactor: project layout (messaging) (#7224)
* refactor: pkg/messaging

* fix: address non-go changes
2025-12-17 19:40:40 +00:00

19 lines
544 B
Go

package adapters
import (
"github.com/status-im/status-go/pkg/messaging/layers/encryption"
"github.com/status-im/status-go/pkg/messaging/types"
"github.com/status-im/status-go/pkg/messaging/utils"
)
func FromEncryptionSubscriptions(s *encryption.Subscriptions) *types.EncryptionSubscriptions {
if s == nil {
return nil
}
return &types.EncryptionSubscriptions{
SendContactCode: s.SendContactCode,
NewHashRatchetKeys: utils.BridgeChannelsSlice(s.NewHashRatchetKeys, FromEncryptionHashRatchet),
Quit: s.Quit,
}
}