会话调整
This commit is contained in:
parent
15f095a406
commit
286d38db5c
@ -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 = [];
|
||||
|
@ -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'};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user