mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 02:43:02 +08:00
Fixed a bug where Ctrl+Shift+t shortcut was using the wrong list
The JoinLastClosedChannel code was using the joinedChannels list instead of the closedChannels list. Fixing this bug made the Ctrl+Shift+t shortuct work as expected.
This commit is contained in:
parent
2d98da0d61
commit
5481ba43c7
@ -435,14 +435,13 @@ namespace osu.Game.Online.Chat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void JoinLastClosedChannel()
|
public void JoinLastClosedChannel()
|
||||||
{
|
{
|
||||||
if(joinedChannels.Count == 0)
|
if(closedChannels.Count == 0)
|
||||||
return;
|
return;
|
||||||
Channel lastClosedChannel = joinedChannels[joinedChannels.Count - 1];
|
Channel lastClosedChannel = closedChannels[closedChannels.Count - 1];
|
||||||
JoinChannel(lastClosedChannel);
|
JoinChannel(lastClosedChannel);
|
||||||
joinedChannels.Remove(lastClosedChannel);
|
closedChannels.Remove(lastClosedChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
private long lastMessageId;
|
private long lastMessageId;
|
||||||
|
Loading…
Reference in New Issue
Block a user