From 6f07cff0bcf0660890323a3ccdca889909063213 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sat, 10 Jun 2017 15:20:41 -0700 Subject: [PATCH] fix syntax errors --- application/application.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/application.go b/application/application.go index 04ebef8..9639378 100644 --- a/application/application.go +++ b/application/application.go @@ -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 {