File tree 3 files changed +5
-5
lines changed
src/frontend/components/messages
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1098,7 +1098,7 @@ async def index(request):
1098
1098
1099
1099
# add to conversations
1100
1100
conversations .append ({
1101
- "name " : self .get_lxmf_conversation_name (other_user_hash ),
1101
+ "display_name " : self .get_lxmf_conversation_name (other_user_hash ),
1102
1102
"destination_hash" : other_user_hash ,
1103
1103
"is_unread" : self .is_lxmf_conversation_unread (other_user_hash ),
1104
1104
"failed_messages_count" : self .lxmf_conversation_failed_messages_count (other_user_hash ),
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default {
101
101
102
102
// we didn't find an existing peer, so just use an unknown name
103
103
this .onPeerClick ({
104
- name : " Unknown Peer" ,
104
+ display_name : " Unknown Peer" ,
105
105
destination_hash: destinationHash,
106
106
});
107
107
Original file line number Diff line number Diff line change 29
29
</div >
30
30
</div >
31
31
<div class =" mr-auto" >
32
- <div class =" text-gray-900" :class =" { 'font-semibold': conversation.is_unread || conversation.failed_messages_count > 0 }" >{{ conversation.name }}</div >
32
+ <div class =" text-gray-900" :class =" { 'font-semibold': conversation.is_unread || conversation.failed_messages_count > 0 }" >{{ conversation.display_name }}</div >
33
33
<div class =" text-gray-500 text-sm" >{{ formatTimeAgo(conversation.updated_at) }}</div >
34
34
</div >
35
35
<div v-if =" conversation.is_unread" class =" my-auto ml-2 mr-2" >
@@ -160,9 +160,9 @@ export default {
160
160
searchedConversations () {
161
161
return this .conversations .filter ((conversation ) => {
162
162
const search = this .conversationsSearchTerm .toLowerCase ();
163
- const matchesName = conversation .name .toLowerCase ().includes (search);
163
+ const matchesDisplayName = conversation .display_name .toLowerCase ().includes (search);
164
164
const matchesDestinationHash = conversation .destination_hash .toLowerCase ().includes (search);
165
- return matchesName || matchesDestinationHash;
165
+ return matchesDisplayName || matchesDestinationHash;
166
166
});
167
167
},
168
168
peersCount () {
You can’t perform that action at this time.
0 commit comments