From 06a3346d2815f28664811d82aaeec51503d7216f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 1 Nov 2021 12:28:48 +0200 Subject: [PATCH] Update mautrix-go and improve pm command responses --- commands.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands.go b/commands.go index f0c0afd..9a14578 100644 --- a/commands.go +++ b/commands.go @@ -958,7 +958,7 @@ func (handler *CommandHandler) CommandPM(ce *CommandEvent) { portal.log.Warnfln("ensureUserInvited(%s) returned false, creating new portal", user.MXID) portal.MXID = "" } else { - ce.Reply("You already have a private chat portal with that user at [%s](https://matrix.to/#/%s)", puppet.Displayname, portal.MXID) + ce.Reply("You already have a private chat portal with +%s at [%s](https://matrix.to/#/%s)", puppet.JID.User, puppet.Displayname, portal.MXID) return } } @@ -967,7 +967,7 @@ func (handler *CommandHandler) CommandPM(ce *CommandEvent) { ce.Reply("Failed to create portal room: %v", err) return } - ce.Reply("Created portal room and invited you to it.") + ce.Reply("Created portal room with +%s and invited you to it.", puppet.JID.User) } const cmdLoginMatrixHelp = `login-matrix <_access token_> - Replace your WhatsApp account's Matrix puppet with your real Matrix account.` diff --git a/go.mod b/go.mod index 4c3f484..63de5ba 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 maunium.net/go/mauflag v1.0.0 maunium.net/go/maulogger/v2 v2.3.1 - maunium.net/go/mautrix v0.9.31 + maunium.net/go/mautrix v0.10.0 ) require ( diff --git a/go.sum b/go.sum index cb2dc90..8cb47a1 100644 --- a/go.sum +++ b/go.sum @@ -219,5 +219,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M= maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA= maunium.net/go/maulogger/v2 v2.3.1 h1:fwBYJne0pHvJrrIPHK+TAPfyxxbBEz46oVGez2x0ODE= maunium.net/go/maulogger/v2 v2.3.1/go.mod h1:TYWy7wKwz/tIXTpsx8G3mZseIRiC5DoMxSZazOHy68A= -maunium.net/go/mautrix v0.9.31 h1:n7UF5tqq2zCyfdNsv++RyQ2anjjrFVOmOA2VkZCSgZc= -maunium.net/go/mautrix v0.9.31/go.mod h1:3U7pOAx4bxdIVJuunLDAToI+M7YwxcGMm74zBmX5aY0= +maunium.net/go/mautrix v0.10.0 h1:DMymRnen+E2FWyhhRACJ8LCqiwIetVj2C2676eWMSTw= +maunium.net/go/mautrix v0.10.0/go.mod h1:3U7pOAx4bxdIVJuunLDAToI+M7YwxcGMm74zBmX5aY0=