Skip to content

Commit

Permalink
Fix small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirKhil committed May 9, 2024
1 parent 0336889 commit 733c514
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/SICore/SICore/Clients/Game/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3650,7 +3650,7 @@ private void InformAvatar(ViewerAccount account, string receiver)
{
if (!string.IsNullOrEmpty(account.Picture))
{
_gameActions.SendMessageWithArgs(Messages.Avatar, account.Name, ContentTypes.Image, account.Picture);
_gameActions.SendMessageToWithArgs(receiver, Messages.Avatar, account.Name, ContentTypes.Image, account.Picture);

// for backward compatibility
var link = CreateUri(account.Name, account.Picture, receiver);
Expand All @@ -3663,7 +3663,7 @@ private void InformAvatar(ViewerAccount account, string receiver)

if (!string.IsNullOrEmpty(account.AvatarVideoUri))
{
_gameActions.SendMessageWithArgs(Messages.Avatar, account.Name, ContentTypes.Video, account.AvatarVideoUri);
_gameActions.SendMessageToWithArgs(receiver, Messages.Avatar, account.Name, ContentTypes.Video, account.AvatarVideoUri);
}
}

Expand Down
10 changes: 5 additions & 5 deletions test/SIGame/SIGame.Tests/MainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class MainTest
{
private static readonly HttpClient HttpClient = new() { DefaultRequestVersion = HttpVersion.Version20 };

[TestCase(PackageSourceTypes.RandomServer, GameRole.Player, true)]
[TestCase(PackageSourceTypes.SIStorage, GameRole.Player, true)]
[TestCase(PackageSourceTypes.Local, GameRole.Player, true)]
[TestCase(PackageSourceTypes.RandomServer, GameRole.Viewer, true)]
[TestCase(PackageSourceTypes.RandomServer, GameRole.Showman, true)]
[TestCase(PackageSourceTypes.RandomServer, GameRole.Player)]
[TestCase(PackageSourceTypes.SIStorage, GameRole.Player)]
[TestCase(PackageSourceTypes.Local, GameRole.Player)]
[TestCase(PackageSourceTypes.RandomServer, GameRole.Viewer)]
[TestCase(PackageSourceTypes.RandomServer, GameRole.Showman)]
public async Task GameCreateAndRun_Ok_Async(
PackageSourceTypes packageSourceType,
GameRole gameRole)
Expand Down
2 changes: 1 addition & 1 deletion test/SIGame/SIGame.Tests/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"GameServerClient": {
"ServiceUri": "https://vladimirkhil.com:30500/"
"ServiceUri": "https://content.vladimirkhil.com:30500/"
},
"SIStorageServiceClient": {
"ServiceUri": "https://vladimirkhil.com/sistorage/"
Expand Down

0 comments on commit 733c514

Please sign in to comment.