aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-26 17:03:49 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-26 17:03:49 +0100
commit4270202972ec80ca98a5159e30978378194c1b41 (patch)
tree6b25f26b926afdf268f2ebeaf5330f431b4f808d /account.go
parentd97a76fcc338e7a532d0796ce5b12bdefb0a6f17 (diff)
downloadeasybridge-4270202972ec80ca98a5159e30978378194c1b41.tar.gz
easybridge-4270202972ec80ca98a5159e30978378194c1b41.zip
Try to fix stuff
Diffstat (limited to 'account.go')
-rw-r--r--account.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/account.go b/account.go
index cd6d033..6be12e7 100644
--- a/account.go
+++ b/account.go
@@ -227,7 +227,9 @@ func (a *Account) roomInfoUpdatedInternal(roomId RoomID, author UserID, info *Ro
}
as_mxid := ezbrMxId()
- if len(author) > 0 {
+ if author == a.Conn.User() {
+ as_mxid = a.MatrixUser
+ } else if len(author) > 0 {
mx_user_id, err2 := dbGetMxUser(a.Protocol, author)
if err2 == nil {
as_mxid = mx_user_id