mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-19 13:00:46 +01:00
44355109d7
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 |
||
---|---|---|
.. | ||
sampledata | ||
signature | ||
src | ||
.gitignore | ||
build.gradle | ||
lint.xml | ||
proguard-rules.pro |