erinn
/
ui
forked from cwtch.im/ui
1
0
Fork 0

Saving Messages

This commit is contained in:
Sarah Jamie Lewis 2018-11-28 12:34:49 -08:00
parent b5875453fb
commit 7a8e102b2a
1 changed files with 9 additions and 8 deletions

View File

@ -1,13 +1,13 @@
package gothings
import (
"bounce/go/constants"
"bounce/go/gobjects"
"bounce/go/the"
"cwtch.im/cwtch/model"
"encoding/base32"
"strings"
"log"
"bounce/go/constants"
"bounce/go/the"
"bounce/go/gobjects"
"strings"
)
type InterfaceState struct {
@ -98,6 +98,7 @@ func (this *InterfaceState) AddMessage(m *gobjects.Message) {
c.Badge++
this.UpdateContact(c.Handle)
}
the.CwtchApp.SaveProfile(the.Peer)
}
func (this *InterfaceState) GetMessages(handle string) []*gobjects.Message {