forked from cwtch.im/ui
Saving Messages
This commit is contained in:
parent
b5875453fb
commit
7a8e102b2a
|
@ -1,13 +1,13 @@
|
||||||
package gothings
|
package gothings
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bounce/go/constants"
|
||||||
|
"bounce/go/gobjects"
|
||||||
|
"bounce/go/the"
|
||||||
"cwtch.im/cwtch/model"
|
"cwtch.im/cwtch/model"
|
||||||
"encoding/base32"
|
"encoding/base32"
|
||||||
"strings"
|
|
||||||
"log"
|
"log"
|
||||||
"bounce/go/constants"
|
"strings"
|
||||||
"bounce/go/the"
|
|
||||||
"bounce/go/gobjects"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type InterfaceState struct {
|
type InterfaceState struct {
|
||||||
|
@ -98,6 +98,7 @@ func (this *InterfaceState) AddMessage(m *gobjects.Message) {
|
||||||
c.Badge++
|
c.Badge++
|
||||||
this.UpdateContact(c.Handle)
|
this.UpdateContact(c.Handle)
|
||||||
}
|
}
|
||||||
|
the.CwtchApp.SaveProfile(the.Peer)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *InterfaceState) GetMessages(handle string) []*gobjects.Message {
|
func (this *InterfaceState) GetMessages(handle string) []*gobjects.Message {
|
||||||
|
|
Loading…
Reference in New Issue