|
@@ -554,7 +554,7 @@ func (user *User) readyHandler(_ *discordgo.Session, r *discordgo.Ready) {
|
|
const maxCreate = 5
|
|
const maxCreate = 5
|
|
for i, ch := range r.PrivateChannels {
|
|
for i, ch := range r.PrivateChannels {
|
|
portal := user.GetPortalByMeta(ch)
|
|
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 {
|
|
if r.ReadState.Version > user.ReadStateVersion {
|