mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-10 09:00:41 +01:00
Previously, it could happen that DM-layout and non-DM-layout were mixed in the same chat for following reasons: - on purpose, when it is a DM, but in the past had messages by a third party - not on purpose, when the room member information wasn't loaded in time for some messages, and thus the fallback assumed showing DM layout wasn't safe However, this leads to an inconsistent layout, which looks bad. Accordingly, this patch changes the behaviour as following: - always use the DM layout for chats marked as DM - if it is not clear if the message was sent by the actual DM partner, show the name (as opposed to previously: show name and avatar). While this makes it more difficult to tell apart messages from the DM partner and a third person, it is still possible, since the third person has a name shown, and the DM partner's messages start with a bubble with tail but without name. This is prefered to the previous solution, which looked rather buggy than anything else. Change-Id: I7c3e5ca7b04acec6eede345a9abde833ce0714d3