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

@@ -118,8 +118,8 @@ func (br *DiscordBridge) GetAllPortals() []*Portal {
return br.dbPortalsToPortals(br.DB.Portal.GetAll())
}
func (br *DiscordBridge) GetAllPortalsByID(id string) []*Portal {
return br.dbPortalsToPortals(br.DB.Portal.GetAllByID(id))
func (br *DiscordBridge) GetDMPortalsWith(otherUserID string) []*Portal {
return br.dbPortalsToPortals(br.DB.Portal.FindPrivateChatsWith(otherUserID))
}
func (br *DiscordBridge) dbPortalsToPortals(dbPortals []*database.Portal) []*Portal {