瀏覽代碼

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 年之前
父節點
當前提交
a9080799a8
共有 2 個文件被更改,包括 8 次插入1 次删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存