Skip to content

Commit

Permalink
chore: follow-up process for changes of getters
Browse files Browse the repository at this point in the history
  • Loading branch information
Silver-IT committed Feb 27, 2024
1 parent e0fc6cd commit d639cdb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions frontend/model/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@ const getters = {
return nameA.normalize().toUpperCase() > nameB.normalize().toUpperCase() ? 1 : -1
})
},
ourContacts (state, getters) {
return Object.keys(getters.ourContactProfiles)
ourContactsByUsername (state, getters) {
return Object.keys(getters.ourContactProfilesByUsername)
.sort((usernameA, usernameB) => {
const nameA = getters.ourContactProfiles[usernameA].displayName || usernameA
const nameB = getters.ourContactProfiles[usernameB].displayName || usernameB
const nameA = getters.ourContactProfilesByUsername[usernameA].displayName || usernameA
const nameB = getters.ourContactProfilesByUsername[usernameB].displayName || usernameB
return nameA.normalize().toUpperCase() > nameB.normalize().toUpperCase() ? 1 : -1
})
}
Expand Down
1 change: 0 additions & 1 deletion frontend/views/containers/chatroom/ChatMembers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default ({
},
computed: {
...mapGetters([
'ourContactProfiles',
'groupShouldPropose',
'ourGroupDirectMessages',
'chatRoomUnreadMentions',
Expand Down
2 changes: 0 additions & 2 deletions frontend/views/containers/chatroom/DMMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const DMMixin: Object = {
computed: {
...mapGetters([
'currentChatRoomId',
'ourContacts',
'ourContactProfiles',
'isDirectMessage',
'ourGroupDirectMessages',
'ourIdentityContractId',
Expand Down
3 changes: 1 addition & 2 deletions frontend/views/containers/chatroom/LeaveChannelModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export default ({
'currentChatRoomId',
'currentChatRoomState',
'ourGroupDirectMessages',
'isDirectMessage',
'ourContactProfiles'
'isDirectMessage'
]),
...mapState(['loggedIn', 'currentGroupId']),
channelName () {
Expand Down

0 comments on commit d639cdb

Please sign in to comment.