mirror of
https://github.com/status-im/status-go.git
synced 2026-08-31 09:01:16 +00:00
20 lines
435 B
Go
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,
|
|
}
|
|
}
|