Files
Igor Sirotin 0fcf4ceb8e refactor: project layout (messaging) (#7224)
* refactor: pkg/messaging

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

20 lines
435 B
Go

package adapters
import (
"github.com/status-im/status-go/pkg/messaging/types"
wakutypes "github.com/status-im/status-go/pkg/messaging/waku/types"
)
func ToWakuBatch(b *types.StoreNodeBatch) *wakutypes.MailserverBatch {
if b == nil {
return nil
}
return &wakutypes.MailserverBatch{
From: b.From,
To: b.To,
PubsubTopic: b.PubsubTopic,
Topics: ToWakuTopics(b.Topics),
ChatIDs: b.ChatIDs,
}
}