-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to delete threads and all messages #322
- Loading branch information
1 parent
8c030b6
commit 6602902
Showing
17 changed files
with
449 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package events | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/NdoleStudio/httpsms/pkg/entities" | ||
|
||
"github.com/google/uuid" | ||
) | ||
|
||
// MessageThreadAPIDeleted is emitted when a new message is deleted | ||
const MessageThreadAPIDeleted = "message-thread.api.deleted" | ||
|
||
// MessageThreadAPIDeletedPayload is the payload of the MessageThreadAPIDeleted event | ||
type MessageThreadAPIDeletedPayload struct { | ||
MessageThreadID uuid.UUID `json:"message_thread_id"` | ||
UserID entities.UserID `json:"user_id"` | ||
Owner string `json:"owner"` | ||
Contact string `json:"contact"` | ||
IsArchived bool `json:"is_archived"` | ||
Color string `json:"color"` | ||
Status entities.MessageStatus `json:"status"` | ||
Timestamp time.Time `json:"timestamp"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.