会话调整

This commit is contained in:
fan 2020-07-14 17:21:39 +08:00
parent 15f095a406
commit 286d38db5c
2 changed files with 4 additions and 2 deletions

View File

@ -534,7 +534,7 @@ export default {
const user = this.simulationUsers[this.$store.state.user.id];
this.isConversitionCreator = conversation.creatorId == user.memberId;
!conversation.over && conversation.memberList.forEach(member =>{
if (member.memberId == user.memberId) {
if (member.memberId == user.memberId && member.connect) {
this.conversitionMemberList = conversation.memberList;
this.conversitionId = conversation.id;
this.messageList = [];

View File

@ -9,7 +9,6 @@
:style="computedStyle(member)"
:title="memberData[member.memberId].label + (memberData[member.memberId].userId? '(' + (simulationUsers[memberData[member.memberId].userId] || {}).nickName + ')': '')"
>{{ memberData[member.memberId].label + (memberData[member.memberId].userId? '(' + (simulationUsers[memberData[member.memberId].userId] || {}).nickName + ')': '') }}</div>
<!-- :class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'" -->
</div>
</div>
</template>
@ -53,6 +52,9 @@ export default {
const userId = (this.memberData[member.memberId] || {}).userId;
if (userId && userId == this.userId) {
return {color: 'red'};
} else if (userId) {
const user = this.simulationUsers[userId];
return {color: member.connect && user.online ? 'green' : 'gray'};
} else {
return {color: member.connect ? 'green' : 'gray'};
}