Fix enveloppe header in search results

Fixes #5158.
This commit is contained in:
Quentin Hibon 2021-04-08 02:27:27 +02:00
parent 86cb7c97be
commit 5623bb5906

View file

@ -200,6 +200,9 @@ export const getMessageSearchResultSelector = createSelector(
if (type === 'incoming') {
from = conversationSelector(sourceUuid || source);
to = conversationSelector(conversationId);
if (from === to) {
to = conversationSelector(ourConversationId);
}
} else if (type === 'outgoing') {
from = conversationSelector(ourConversationId);
to = conversationSelector(conversationId);