mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Fix PM channel type
This commit is contained in:
parent
d677921680
commit
b31efb7bb9
@ -77,7 +77,7 @@ namespace osu.Game.Online.Chat
|
|||||||
throw new ArgumentNullException(nameof(user));
|
throw new ArgumentNullException(nameof(user));
|
||||||
|
|
||||||
CurrentChannel.Value = JoinedChannels.FirstOrDefault(c => c.Type == ChannelType.PM && c.Users.Count == 1 && c.Users.Any(u => u.Id == user.Id))
|
CurrentChannel.Value = JoinedChannels.FirstOrDefault(c => c.Type == ChannelType.PM && c.Users.Count == 1 && c.Users.Any(u => u.Id == user.Id))
|
||||||
?? new Channel { Name = user.Username, Users = { user } };
|
?? new Channel { Name = user.Username, Users = { user }, Type = ChannelType.PM };
|
||||||
}
|
}
|
||||||
|
|
||||||
private void currentChannelChanged(Channel channel) => JoinChannel(channel);
|
private void currentChannelChanged(Channel channel) => JoinChannel(channel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user