SendMessage sends a message to the underlying message channel.
(msg compat.Message)
| 21 | |
| 22 | // SendMessage sends a message to the underlying message channel. |
| 23 | func (c redirectToChannel) SendMessage(msg compat.Message) error { |
| 24 | c.Messages <- MessageWithUserID{ |
| 25 | Message: model.MessageExternal{ |
| 26 | ApplicationID: c.ApplicationID, |
| 27 | Message: msg.Message, |
| 28 | Title: msg.Title, |
| 29 | Priority: &msg.Priority, |
| 30 | Date: time.Now(), |
| 31 | Extras: msg.Extras, |
| 32 | }, |
| 33 | UserID: c.UserID, |
| 34 | } |
| 35 | return nil |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected