Skip to content
Snippets Groups Projects
Commit a871f78f authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Export NewDMReceiver in bindings (there is no good reason to keep it private,...

Export NewDMReceiver in bindings (there is no good reason to keep it private, and we can use it in clib)
parent e80f805e
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ func NewDMClient(cmixID, notificationsID int, privateIdentity []byte,
}
eb := func(path string) (dm.EventModel, error) {
return newDMReceiver(receiverBuilder.Build(path)), nil
return NewDMReceiver(receiverBuilder.Build(path)), nil
}
// We path to the string of the public key for this user
......@@ -963,6 +963,7 @@ func (dmCBS *dmCallbacks) MessageDeleted(messageID message.ID) {
// conversation that were deleted.
//
// Example JSON:
//
// {
// "notificationFilter": {
// "identifier": "MWL6mvtZ9UUm7jP3ainyI4erbRl+wyVaO5MOWboP0rA=",
......@@ -1008,6 +1009,7 @@ type DmNotificationUpdateJSON struct {
// - Blocked - True if the user is blocked and false if they are unblocked.
//
// Example JSON:
//
// {
// "user": "pB87FR7Ci0EDVUEg+aTHl+CJFmzW9qCQEynURJgRBtM=",
// "blocked": true
......@@ -1027,6 +1029,7 @@ type DmBlockedUserJSON struct {
// - ConversationUpdate - Is true if the conversation was created or modified.
//
// Example JSON:
//
// {
// "uuid": 3458558585156768347,
// "pubKey": "Ky0C1gc/j6ingV0+2v39Oc8ukBOf+Gp9HNiBwM7aIdQ=",
......@@ -1046,6 +1049,7 @@ type DmMessageReceivedJSON struct {
// - MessageID - The [message.ID] of the deleted message in the database.
//
// Example JSON:
//
// {
// "messageID": "yGO7PZsOpEs+A1DgEIAyTXxpOwBEtMpShqV7h5EtJYw="
// }
......
......@@ -221,7 +221,7 @@ type dmReceiver struct {
// newDMReceiver is a constructor for a dmReceiver. This will take in an
// DMReceiver and wraps it around the dmReceiver.
func newDMReceiver(dr DMReceiver) dm.EventModel {
func NewDMReceiver(dr DMReceiver) dm.EventModel {
return &dmReceiver{dr: dr}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment