Version 1.9.0

master v1.9.0
Bohdan Horbeshko 3 months ago
parent 3a60a1cfaa
commit 20e6d2558e

@ -2,7 +2,7 @@
COMMIT := $(shell git rev-parse --short HEAD) COMMIT := $(shell git rev-parse --short HEAD)
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551" TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
VERSION := "v1.9.0-dev" VERSION := "v1.9.0"
MAKEOPTS := "-j4" MAKEOPTS := "-j4"
all: all:

@ -48,6 +48,7 @@ func TestSessionToMap(t *testing.T) {
Timezone: "klsf", Timezone: "klsf",
RawMessages: true, RawMessages: true,
OOBMode: true, OOBMode: true,
Receipts: true,
} }
m := session.ToMap() m := session.ToMap()
sample := map[string]string{ sample := map[string]string{
@ -58,6 +59,8 @@ func TestSessionToMap(t *testing.T) {
"oobmode": "true", "oobmode": "true",
"carbons": "false", "carbons": "false",
"hideids": "false", "hideids": "false",
"receipts": "true",
"nativeedits": "false",
} }
if !reflect.DeepEqual(m, sample) { if !reflect.DeepEqual(m, sample) {
t.Errorf("Map does not match the sample: %v", m) t.Errorf("Map does not match the sample: %v", m)

@ -16,7 +16,7 @@ import (
goxmpp "gosrc.io/xmpp" goxmpp "gosrc.io/xmpp"
) )
var version string = "1.9.0-dev" var version string = "1.9.0"
var commit string var commit string
var sm *goxmpp.StreamManager var sm *goxmpp.StreamManager

@ -158,7 +158,7 @@ func (c *Client) Connect(resource string) error {
} }
gateway.SubscribeToTransport(c.xmpp, c.jid) gateway.SubscribeToTransport(c.xmpp, c.jid)
c.sendPresence(gateway.SPStatus("Logged in as: "+c.Session.Login)) c.sendPresence(gateway.SPStatus("Logged in as: " + c.Session.Login))
}() }()
return nil return nil

@ -1298,7 +1298,7 @@ func (c *Client) roster(resource string) {
c.ProcessStatusUpdate(chat, "", "") c.ProcessStatusUpdate(chat, "", "")
} }
c.sendPresence(gateway.SPStatus("Logged in as: "+c.Session.Login)) c.sendPresence(gateway.SPStatus("Logged in as: " + c.Session.Login))
c.addResource(resource) c.addResource(resource)
} }

@ -519,9 +519,11 @@ func TestMessageToPrefix6(t *testing.T) {
ChatId: 25, ChatId: 25,
IsOutgoing: true, IsOutgoing: true,
ReplyTo: &client.MessageReplyToMessage{ ReplyTo: &client.MessageReplyToMessage{
ChatId: 41, ChatId: 41,
Quote: &client.FormattedText{ Quote: &client.TextQuote{
Text: "tist\nuz\niz", Text: &client.FormattedText{
Text: "tist\nuz\niz",
},
}, },
Origin: &client.MessageOriginHiddenUser{ Origin: &client.MessageOriginHiddenUser{
SenderName: "ziz", SenderName: "ziz",

@ -24,6 +24,7 @@ type Reply struct {
} }
type MarkerType byte type MarkerType byte
const ( const (
MarkerTypeReceived MarkerType = iota MarkerTypeReceived MarkerType = iota
MarkerTypeDisplayed MarkerTypeDisplayed

Loading…
Cancel
Save