Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions GenOnlineService/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@
{
// TODO_SOCIAL: Move this to a class
// inform any friends who are online that this person just came online
if (sourceData != null)
{
WebSocketMessage_Social_FriendStatusChanged friendStatusChangedEvent = new();
friendStatusChangedEvent.msg_id = (int)EWebSocketMessageID.SOCIAL_FRIEND_ONLINE_STATUS_CHANGED;
friendStatusChangedEvent.display_name = sourceData.m_strDisplayName;
friendStatusChangedEvent.display_name = sourceData?.m_strDisplayName;
friendStatusChangedEvent.online = false;
byte[] bytesJSON = Encoding.UTF8.GetBytes(JsonSerializer.Serialize(friendStatusChangedEvent));

Expand Down Expand Up @@ -362,7 +364,7 @@
{

}
}

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, osx, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, osx, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 367 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

/*
public static ChatSession? GetWebSocketForUser(Int64 userID)
Expand Down Expand Up @@ -812,7 +814,9 @@

// TODO_SOCIAL: Move this to a class
// inform any friends who are online that this person just came online
WebSocketMessage_Social_FriendStatusChanged friendStatusChangedEvent = new();
if (sourceData != null)
{
WebSocketMessage_Social_FriendStatusChanged friendStatusChangedEvent = new();
friendStatusChangedEvent.msg_id = (int)EWebSocketMessageID.SOCIAL_FRIEND_ONLINE_STATUS_CHANGED;
friendStatusChangedEvent.display_name = strDisplayName;
friendStatusChangedEvent.online = true;
Expand Down Expand Up @@ -851,7 +855,7 @@
public Int64 GetTimeSinceLastPing()
{
return Environment.TickCount64 - m_lastPingTime;
}

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, win, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, win, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, osx, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, osx, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, osx, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (x64, linux-musl, Release)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

Check failure on line 858 in GenOnlineService/Constants.cs

View workflow job for this annotation

GitHub Actions / Build (arm64, linux-musl, Debug)

} expected

public async Task SendAsync(byte[] buffer, WebSocketMessageType messageType)
{
Expand Down
Loading