mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
19 lines
579 B
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})
|
|
}
|