Default channels should only attempt to load messages if channel type is text

This commit is contained in:
Jeremy "EndenDragon" Zhang 2021-08-11 13:33:54 -07:00 committed by GitHub
parent 9de25eb0d3
commit cf79ddcde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -843,7 +843,7 @@ var passedCookieTest = true; // If passed cross origin test
}
for (var i = 0; i < guildchannels.length; i++) {
if (guildchannels[i].channel.id == defaultChannel) {
if (!guildchannels[i].read) {
if (!guildchannels[i].read || guildchannels[i].type != "text") {
return;
}
selected_channel = defaultChannel;