mirror of
https://github.com/ppy/osu
synced 2025-01-18 12:00:58 +00:00
Set chat text box message length limit based on channel
This commit is contained in:
parent
2af8c7bc24
commit
6453ab6049
@ -156,7 +156,11 @@ namespace osu.Game.Overlays.Chat
|
||||
chatTextBox.Current.UnbindFrom(change.OldValue.TextBoxMessage);
|
||||
|
||||
if (newChannel != null)
|
||||
{
|
||||
// change length limit first before binding to avoid accidentally truncating pending message from new channel.
|
||||
chatTextBox.LengthLimit = newChannel.MessageLengthLimit;
|
||||
chatTextBox.Current.BindTo(newChannel.TextBoxMessage);
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user