Fix channel names getting corrupted on own message

This commit is contained in:
Tulir Asokan
2022-05-23 23:18:10 +03:00
parent 17288f3d04
commit 8c66a064e1
4 changed files with 7 additions and 7 deletions

View File

@@ -682,7 +682,7 @@ func (user *User) ensureInvited(intent *appservice.IntentAPI, roomID id.RoomID,
func (user *User) getDirectChats() map[id.UserID][]id.RoomID {
chats := map[id.UserID][]id.RoomID{}
privateChats := user.bridge.DB.Portal.FindPrivateChats(user.ID)
privateChats := user.bridge.DB.Portal.FindPrivateChatsOf(user.ID)
for _, portal := range privateChats {
if portal.MXID != "" {
puppetMXID := user.bridge.FormatPuppetMXID(portal.Key.Receiver)