Browse Source

Merge branch '93-duplicate-party-display' into 'staging'

Prevent duplicate party members

See merge request !55
tags/v0.1.2^2
Big Bad Waffle 7 years ago
parent
commit
a9080799a8
2 changed files with 8 additions and 1 deletions
  1. +4
    -0
      src/client/ui/templates/party/party.js
  2. +4
    -1
      src/server/components/social.js

+ 4
- 0
src/client/ui/templates/party/party.js View File

@@ -100,6 +100,10 @@ define([
},

onGetParty: function(party) {
// Destroy invite frame if you join a party
if (this.invite)
this.destroyInvite();

var container = this.find('.party .list')
.empty();



+ 4
- 1
src/server/components/social.js View File

@@ -181,7 +181,10 @@ define([
this.updatePartyOnThread();
}

this.party.push(sourceId);
// Only add if not yet in party
if (!this.party.find(id => (id === sourceId)))
this.party.push(sourceId);

this.updatePartyOnThread();

this.party.forEach(function(p) {


Loading…
Cancel
Save