Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Feb 7, 2024
1 parent 6769085 commit 46bf6bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions frontend/views/containers/chatroom/NewDirectMessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ export default ({
]),
ourNewDMContacts () {
return this.ourContactsById
.filter(user => {
if (user === this.ourIdentityContractId) {
.filter(userID => {
if (userID === this.ourIdentityContractId) {
return false
}
const chatRoomId = this.ourGroupDirectMessageFromUserIds(user)
const chatRoomId = this.ourGroupDirectMessageFromUserIds(userID)
return !chatRoomId || !this.ourGroupDirectMessages[chatRoomId].visible
})
.map(user => this.ourContactProfilesById[user])
.map(userID => this.ourContactProfilesById[userID])
},
ourRecentConversations () {
return Object.keys(this.ourGroupDirectMessages)
Expand Down
8 changes: 4 additions & 4 deletions frontend/views/containers/navigation/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
avatar-user(:contractID='ourIdentityContractId' size='sm')
.c-user
strong.has-ellipsis(
:data-test='userDisplayNameFromID ? "profileDisplayName" : "profileName"'
) {{ userDisplayNameFromID || ourUsername || ourIdentityContractId }}
:data-test='ourDisplayName ? "profileDisplayName" : "profileName"'
) {{ ourDisplayName || ourUsername || ourIdentityContractId }}

span.has-ellipsis(
data-test='profileName'
v-if='userDisplayNameFromID'
v-if='ourDisplayName'
) @{{ ourUsername }}

button.is-icon-small(
Expand Down Expand Up @@ -41,7 +41,7 @@ export default ({
'ourUsername',
'ourIdentityContractId'
]),
userDisplayNameFromID () {
ourDisplayName () {
const userContract = this.$store.getters.currentIdentityState
return userContract && userContract.attributes && userContract.attributes.displayName
}
Expand Down

0 comments on commit 46bf6bc

Please sign in to comment.