mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Locally bind to LocalUser
This commit is contained in:
parent
88bdd8a7b7
commit
d47370bac9
@ -35,7 +35,7 @@ namespace osu.Game.Online.Chat
|
||||
|
||||
private Bindable<bool> notifyOnMention;
|
||||
private Bindable<bool> notifyOnPM;
|
||||
private IBindable<User> localUser;
|
||||
private IBindable<User> localUser = new Bindable<User>();
|
||||
private readonly BindableList<Channel> joinedChannels = new BindableList<Channel>();
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -43,9 +43,9 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
notifyOnMention = config.GetBindable<bool>(OsuSetting.ChatHighlightName);
|
||||
notifyOnPM = config.GetBindable<bool>(OsuSetting.ChatMessageNotification);
|
||||
localUser = api.LocalUser;
|
||||
|
||||
channelManager.JoinedChannels.BindTo(joinedChannels);
|
||||
api.LocalUser.BindTo(localUser);
|
||||
|
||||
// Listen for new messages
|
||||
joinedChannels.CollectionChanged += channelsChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user