Fix unnecessary m.space.child updates in DMs
This commit is contained in:
2
user.go
2
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 {
|
||||
|
||||
Reference in New Issue
Block a user