Fixed issue with Horizontal list not refreshing. Added clientId to joinPartyResponse. Crashing on multiple user joins.
This commit is contained in:
@ -21,15 +21,6 @@ namespace Aurora.RemoteImpl
|
||||
public RemotePartyServiceImpl()
|
||||
{
|
||||
_partyMembers = new ObservableCollection<PartyMember>();
|
||||
|
||||
//Add self to members list
|
||||
_partyMembers.Add(new PartyMember
|
||||
{
|
||||
UserName = SettingsService.Instance.Username,
|
||||
Id = "asdf",
|
||||
IpAddress = ServerService.Instance.Hostname,
|
||||
Port = ServerService.Instance.Port
|
||||
});
|
||||
}
|
||||
|
||||
public ObservableCollection<PartyMember> PartyMembers
|
||||
@ -42,7 +33,7 @@ namespace Aurora.RemoteImpl
|
||||
|
||||
public override Task<JoinPartyResponse> JoinParty(JoinPartyRequest request, Grpc.Core.ServerCallContext context)
|
||||
{
|
||||
PartyMember partyMember = new PartyMember()
|
||||
PartyMember partyMember = new PartyMember("")
|
||||
{
|
||||
UserName = request.UserName,
|
||||
IpAddress = context.Host,
|
||||
@ -61,7 +52,7 @@ namespace Aurora.RemoteImpl
|
||||
|
||||
EventManager.Instance.PushEvent(e);
|
||||
|
||||
JoinPartyResponse response = new JoinPartyResponse() { Status = PartyJoinedStatusEnum.Connected };
|
||||
JoinPartyResponse response = new JoinPartyResponse() { Status = PartyJoinedStatusEnum.Connected, ClientId = partyMember.Id };
|
||||
return Task.FromResult(response);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user