mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Add missing request handling to actually join PM channels
This commit is contained in:
parent
21d31ee218
commit
ed1b809f54
@ -78,6 +78,14 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
switch (req)
|
switch (req)
|
||||||
{
|
{
|
||||||
|
case CreateChannelRequest createRequest:
|
||||||
|
createRequest.TriggerSuccess(new APIChatChannel
|
||||||
|
{
|
||||||
|
ChannelID = ((int)createRequest.Channel.Id),
|
||||||
|
RecentMessages = new List<Message>()
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
|
||||||
case GetUpdatesRequest getUpdates:
|
case GetUpdatesRequest getUpdates:
|
||||||
getUpdates.TriggerFailure(new WebException());
|
getUpdates.TriggerFailure(new WebException());
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user