Ver Fonte

Fix unnecessary m.space.child updates in DMs

Tulir Asokan há 3 anos atrás
pai
commit
45d0c686ed
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      user.go

+ 1 - 1
user.go

@@ -554,7 +554,7 @@ func (user *User) readyHandler(_ *discordgo.Session, r *discordgo.Ready) {
 	const maxCreate = 5
 	for i, ch := range r.PrivateChannels {
 		portal := user.GetPortalByMeta(ch)
-		user.handlePrivateChannel(portal, ch, updateTS, i < maxCreate, portalsInSpace[portal.Key.String()])
+		user.handlePrivateChannel(portal, ch, updateTS, i < maxCreate, portalsInSpace[portal.Key.ChannelID])
 	}
 
 	if r.ReadState.Version > user.ReadStateVersion {