Version 1.9.0

This commit is contained in:
Bohdan Horbeshko 2024-01-29 05:00:42 -05:00
parent 3a60a1cfaa
commit 20e6d2558e
7 changed files with 13 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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

View file

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