mirror of
https://github.com/osukey/osukey.git
synced 2025-06-25 05:07:59 +09:00
Fix crossthread mutations
This commit is contained in:
parent
169bcc2654
commit
ab78cde2d4
@ -85,9 +85,9 @@ namespace osu.Game.Online.Chat
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
connector.ChannelJoined += ch => joinChannel(ch);
|
connector.ChannelJoined += ch => Schedule(() => joinChannel(ch));
|
||||||
connector.NewMessages += addMessages;
|
connector.NewMessages += msgs => Schedule(() => addMessages(msgs));
|
||||||
connector.PresenceReceived += () =>
|
connector.PresenceReceived += () => Schedule(() =>
|
||||||
{
|
{
|
||||||
if (!channelsInitialised)
|
if (!channelsInitialised)
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ namespace osu.Game.Online.Chat
|
|||||||
// we want this to run after the first presence so we can see if the user is in any channels already.
|
// we want this to run after the first presence so we can see if the user is in any channels already.
|
||||||
initializeChannels();
|
initializeChannels();
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
connector.StartChat();
|
connector.StartChat();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user