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) 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:

View file

@ -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)

View file

@ -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

View file

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

View file

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