status-go/signal/events_messenger.go

19 lines
579 B
Go

package signal
const (
// EventMesssageDelivered triggered when we got acknowledge from datasync level, that means peer got message
EventMesssageDelivered = "message.delivered"
)
// MessageDeliveredSignal specifies chat and message that was delivered
type MessageDeliveredSignal struct {
ChatID string `json:"chatID"`
MessageID string `json:"messageID"`
}
// SendMessageDelivered notifies about delivered message
func SendMessageDelivered(chatID string, messageID string) {
send(EventMesssageDelivered, MessageDeliveredSignal{ChatID: chatID, MessageID: messageID})
}