Merge pull request #21 from dballard/new_api-fix_app

fix syntax errors
This commit is contained in:
Sarah Jamie Lewis 2017-06-10 20:17:58 -07:00 committed by GitHub
commit 4f1a2f82cc
1 changed files with 3 additions and 3 deletions

View File

@ -9,18 +9,18 @@ import (
// RicochetApplication bundles many useful constructs that are
// likely standard in a ricochet application
type RicochetApplication struct {
connection *Connection
connection *connection.Connection
}
// NewRicochetApplication ...
func NewRicochetApplication(connection *Connection) *RicochetApplication {
func NewRicochetApplication(connection *connection.Connection) *RicochetApplication {
ra := new(RicochetApplication)
ra.connection = connection
return ra
}
// SendMessage ...
func (ra *RicochetApplication) SendChatMessage(message []string) error {
func (ra *RicochetApplication) SendChatMessage(message string) error {
return ra.connection.Do(func() error {
channel := ra.connection.Channel("im.ricochet.chat", channels.Outbound)
if channel != nil {