mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 00:01:55 -06:00
56b55a28f5
### Fixes * A bug in the roomserver around handling rejected outliers has been fixed * Backfilled events will now use the correct history visibility where possible * The device list updater backoff has been fixed, which should reduce the number of outbound HTTP requests and `Failed to query device keys for some users` log entries for dead servers * The `/sync` endpoint will no longer incorrectly return room entries for retired invites which could cause some rooms to show up in the client "Historical" section * The `/createRoom` endpoint will now correctly populate `is_direct` in invite membership events, which may help clients to classify direct messages correctly * The `create-account` tool will now log an error if the shared secret is not set in the Dendrite config * A couple of minor bugs have been fixed in the membership lazy-loading * Queued EDUs in the federation API are now cached properly
44 lines
768 B
Go
44 lines
768 B
Go
package internal
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// the final version string
|
|
var version string
|
|
|
|
// -ldflags "-X github.com/matrix-org/dendrite/internal.branch=master"
|
|
var branch string
|
|
|
|
// -ldflags "-X github.com/matrix-org/dendrite/internal.build=alpha"
|
|
var build string
|
|
|
|
const (
|
|
VersionMajor = 0
|
|
VersionMinor = 9
|
|
VersionPatch = 4
|
|
VersionTag = "" // example: "rc1"
|
|
)
|
|
|
|
func VersionString() string {
|
|
return version
|
|
}
|
|
|
|
func init() {
|
|
version = fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
|
|
if VersionTag != "" {
|
|
version += "-" + VersionTag
|
|
}
|
|
parts := []string{}
|
|
if build != "" {
|
|
parts = append(parts, build)
|
|
}
|
|
if branch != "" {
|
|
parts = append(parts, branch)
|
|
}
|
|
if len(parts) > 0 {
|
|
version += "+" + strings.Join(parts, ".")
|
|
}
|
|
}
|