Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit eb4ac24

Browse files
committed
upgrade mautrix to 0.9.15
1 parent b6edd50 commit eb4ac24

File tree

3 files changed

+68
-191
lines changed

3 files changed

+68
-191
lines changed

clients/bot_client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (botClient *BotClient) InitOlmMachine(client *mautrix.Client, nebStore *mat
7676
regexes = append(regexes, regex)
7777
}
7878
}
79-
olmMachine.AcceptVerificationFrom = func(_ string, otherDevice *crypto.DeviceIdentity) (crypto.VerificationRequestResponse, crypto.VerificationHooks) {
79+
olmMachine.AcceptVerificationFrom = func(_ string, otherDevice *crypto.DeviceIdentity, _ id.RoomID) (crypto.VerificationRequestResponse, crypto.VerificationHooks) {
8080
for _, regex := range regexes {
8181
if regex.MatchString(otherDevice.UserID.String()) {
8282
if atomic.LoadInt32(&botClient.ongoingVerificationCount) >= maximumVerifications {
@@ -159,7 +159,7 @@ func (botClient *BotClient) SendMessageEvent(roomID id.RoomID, evtType mevt.Type
159159
// Sync loops to keep syncing the client with the homeserver by calling the /sync endpoint.
160160
func (botClient *BotClient) Sync() {
161161
// Get the state store up to date
162-
resp, err := botClient.SyncRequest(30000, "", "", true, mevt.PresenceOnline)
162+
resp, err := botClient.SyncRequest(30000, "", "", true, mevt.PresenceOnline, context.Background())
163163
if err != nil {
164164
log.WithError(err).Error("Error performing initial sync")
165165
return
@@ -314,5 +314,5 @@ func (botClient *BotClient) ForwardRoomKeyToDevice(userID id.UserID, deviceID id
314314
},
315315
}
316316

317-
return botClient.olmMachine.SendEncryptedToDevice(device, forwardedRoomKey)
317+
return botClient.olmMachine.SendEncryptedToDevice(device, mevt.ToDeviceForwardedRoomKey, forwardedRoomKey)
318318
}

go.mod

+4-20
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,36 @@ go 1.14
44

55
require (
66
github.com/PuerkitoBio/goquery v1.5.1 // indirect
7-
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
8-
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 // indirect
97
github.com/andygrunwald/go-jira v1.11.0
108
github.com/beorn7/perks v1.0.1 // indirect
11-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
129
github.com/dghubble/oauth1 v0.6.0
1310
github.com/die-net/lrucache v0.0.0-20190707192454-883874fe3947
14-
github.com/go-kit/kit v0.9.0 // indirect
15-
github.com/go-logfmt/logfmt v0.4.0 // indirect
16-
github.com/go-stack/stack v1.8.0 // indirect
17-
github.com/gogo/protobuf v1.1.1 // indirect
1811
github.com/golang/protobuf v1.3.2 // indirect
1912
github.com/google/go-cmp v0.4.0 // indirect
2013
github.com/google/go-github v17.0.0+incompatible
2114
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
2215
github.com/jaytaylor/html2text v0.0.0-20200220170450-61d9dc4d7195
23-
github.com/json-iterator/go v1.1.9 // indirect
24-
github.com/julienschmidt/httprouter v1.2.0 // indirect
2516
github.com/kr/pretty v0.1.0 // indirect
26-
github.com/lib/pq v1.7.0
17+
github.com/lib/pq v1.9.0
2718
github.com/matrix-org/dugong v0.0.0-20180820122854-51a565b5666b
2819
github.com/matrix-org/util v0.0.0-20190711121626-527ce5ddefc7
2920
github.com/mattn/go-shellwords v1.0.10
3021
github.com/mattn/go-sqlite3 v2.0.3+incompatible
3122
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
3223
github.com/mmcdole/gofeed v1.0.0-beta2
3324
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf // indirect
34-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
35-
github.com/modern-go/reflect2 v1.0.1 // indirect
36-
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223 // indirect
3725
github.com/olekukonko/tablewriter v0.0.4 // indirect
38-
github.com/pkg/errors v0.9.1
26+
github.com/pkg/errors v0.9.1 // indirect
3927
github.com/prometheus/client_golang v0.8.1-0.20160916180340-5636dc67ae77
4028
github.com/prometheus/client_model v0.0.0-20150212101744-fa8ad6fec335 // indirect
4129
github.com/prometheus/common v0.0.0-20161002210234-85637ea67b04 // indirect
4230
github.com/prometheus/procfs v0.0.0-20160411190841-abf152e5f3e9 // indirect
4331
github.com/russross/blackfriday v1.5.2
44-
github.com/sasha-s/go-deadlock v0.2.0
4532
github.com/sirupsen/logrus v1.4.2
4633
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
47-
golang.org/dl v0.0.0-20200601221412-a954fa24b3e5 // indirect
48-
golang.org/x/net v0.0.0-20200602114024-627f9648deb9
34+
golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d
4935
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
50-
golang.org/x/tools v0.0.0-20200311090712-aafaee8bce8c // indirect
51-
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
5236
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
5337
gopkg.in/yaml.v2 v2.3.0
54-
maunium.net/go/mautrix v0.7.0
38+
maunium.net/go/mautrix v0.9.15
5539
)

0 commit comments

Comments
 (0)