- Hide public room functionality (rationale: people chatting with strangers on the internet can be considered advanced users)
- Clicking on + / Rooms goes directly to "Create new room" instead of the intermediate step which allows joining public rooms
- The "New room" screen would hide the setting to make the room public and publish it in the room directory
- Hide room address settings in the room settings
- Hide encryption settings (rationale: encryption is hard to explain to users without background knowledge)
Closes https://github.com/SpiritCroc/SchildiChat-android/issues/23
Change-Id: If1a7f16880ca2f4333270ec29cc1d27f70a9132d
The reason for this being two times the reserved avatar size was
aligning it to the right side, even when having avatars on both sides.
By now, we hide the user's avatar, so one times the reserved avatar size
is enough.
For landscape tablets, don't reduce it, as we have enough screen estate.
Change-Id: I526d11e891612627418fe31bb40c3c131ea18c4c
The margin is there for dual-side bubbles, so the bubbles are more
connected to the same side of the sender avatar.
For single-side bubbles, this is a waste of space, so remove it for this
scenario.
Change-Id: Ib70cd0b1d30c2a8dbb356c80bd12a8310dceda8c
We did remember low priority before. We might want to remember other
categories as well, but let's better keep the invite category expanded
by default.
Change-Id: Ia351de35751ce5a13f3739ed5f7a3528e315261f
One could argue that collapsing is only useful if we have more than 2
lines to hide.
Also, @su-ex wants more lines, so let's go for 5+3.
Change-Id: I5f3580171d4b1544fd8f91f1de48cea85023b60a
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
Floating action button has accent color background, so better not have
the icon accent color as well.
Change-Id: Ie5cd49a3e4631425c14183e022a16dde76d40004
For use with
- bottom timestamps in message bubbles
- unpersonal read receipts: maybe in the future, as we can not really
update all relevant messages with the current db update mechanism.
But we can use it for send-status for now.
Change-Id: I2de909362394e336f9aaba9f0d157e7c6fe8f9b1
Directly assign colours to a colour buffer then use that buffer to
generate the bitmap. This is much faster than using Bitmap.setPixel for
every pixel.
Signed-off-by: Graeme Power <gjpower@tcd.ie>