SchildiChat-android/vector/src
SpiritCroc 44355109d7 Improve direct chat handling
We show less information in direct chats in dual chat bubble layout, as
we assume that the senders know themselves, and see the chat partner
from  the action bar at the top.

However, there are some limitations:
- A directChat might actually include more members, due to helper bots,
  multiple accounts, or misconfigurations
- Even if a direct chat has exactly two members, there might have been
  some membership changes in the past

To account for this, we do the following:
- Only enable the direct message layout if there are exactly two members
  in the room currently (in addition to the isDirect-flag being set)
- Before hiding sender information, check if the sender is actually the
  expected chat partner. If not, fallback to showing avatar and name for
  this message.

Possible improvement for the future: if we have a message in a direct
chat by a non-member, following messages by the dm chat partner might
benefit from showing member name either way.

Change-Id: Ie4a204510990301175339e60469048b06669d36b
2020-11-02 12:25:10 +01:00
..
androidTest/java/im/vector/app
debug Using ApplicationId from BuildConfig 2020-10-13 20:17:56 +02:00
fdroid Push test now does not display notification anymore. Add a dedicated test to do it 2020-10-09 20:10:55 +02:00
gplay Merge remote-tracking branch 'upstream/master' into sc 2020-10-17 15:28:18 +02:00
main Improve direct chat handling 2020-11-02 12:25:10 +01:00
release Using ApplicationId from BuildConfig 2020-10-13 20:17:56 +02:00
sharedTest/java/im/vector/app/test/shared
test/java/im/vector/app Changed rainbow algorithm 2020-10-05 17:28:05 +02:00