Tests[SendWithPriority]

This commit is contained in:
2022-11-30 21:39:14 +01:00
parent a7df476e79
commit 1ca09c16d3
7 changed files with 172 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ type MessageJSON struct {
SenderIP string `json:"sender_ip"`
Timestamp string `json:"timestamp"`
Title string `json:"title"`
Content *string `json:"body"`
Content *string `json:"content"`
Priority int `json:"priority"`
UserMessageID *string `json:"usr_message_id"`
Trimmed bool `json:"trimmed"`

View File

@@ -86,6 +86,10 @@ func (u User) DefaultChannel() string {
return "main"
}
func (u User) DefaultPriority() int {
return 1
}
func (u User) MaxChannelNameLength() int {
return 120
}