Commit graph

7222 commits

Author SHA1 Message Date
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
SpiritCroc
be2983053a For bottom timestamps, we can hide member names also when hiding avatars
Member names not really important in direct chats or for outgoing
messages.

Change-Id: I1d3328444daf571488b1d9b4d2d188d695c515b3
2020-11-02 12:25:09 +01:00
SpiritCroc
0b2d98b116 Don't reserve space for the expand text button if we need just one more line
Test: view Room summary with 1, 2, 3, 4 lines

Change-Id: Ic8a5e197f78ffeb8c1410d6ac3c859fd522decaa
2020-11-02 12:25:09 +01:00
SpiritCroc
12e97fbed2 Hide redactions by default
Change-Id: I498ca35464f7f42b70e21ca451b94702aefee8d6
2020-11-02 12:25:09 +01:00
SpiritCroc
d538ee4dcb Fix ic_send for attachments on fab
Floating action button has accent color background, so better not have
the icon accent color as well.

Change-Id: Ie5cd49a3e4631425c14183e022a16dde76d40004
2020-11-02 12:25:09 +01:00
SpiritCroc
056c27a270 Overlay image/video items with footer
Change-Id: I353ab5223b60677486d590d7c38a8186e3a8c3db
2020-11-02 12:23:35 +01:00
SpiritCroc
8602f1345b Message bubble footer area
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
2020-11-02 12:08:38 +01:00
Benoit Marty
734602f4f7
Merge pull request #2331 from gjpower/develop
Considerably faster QR-code bitmap generation
2020-11-02 10:03:52 +01:00
Markus
3364dd3380 Merged latest CHANGES.md 2020-11-01 10:13:27 +01:00
Graeme Power
bd36c67bf2
satisfy ktlint demand for spacing around "*"
Signed-off-by: Graeme Power <gjpower@tcd.ie>
2020-10-31 17:43:21 +01:00
Graeme Power
856ae33fd5
Added details to AUTHORS.md
Signed-off-by: Graeme Power <gjpower@tcd.ie>
2020-10-31 17:38:19 +01:00
Graeme Power
fd4bfaea1f
Considerably faster QR-code bitmap generation
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>
2020-10-31 16:50:58 +01:00
Hakim Oubouali
3dfdb9cba0 Translated using Weblate (Central Atlas Tamazight)
Currently translated at 0.3% (6 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/tzm/
2020-10-31 12:50:08 +00:00
notramo
812181c435 Translated using Weblate (Hungarian)
Currently translated at 100.0% (3 of 3 strings)

Translation: Element Android/Element Android Store
Translate-URL: https://translate.element.io/projects/element-android/element-store/hu/
2020-10-31 12:50:08 +00:00
ynerant
9f3d59711f Translated using Weblate (French)
Currently translated at 100.0% (3 of 3 strings)

Translation: Element Android/Element Android Store
Translate-URL: https://translate.element.io/projects/element-android/element-store/fr/
2020-10-31 12:50:08 +00:00
notramo
438060dfa2 Translated using Weblate (Hungarian)
Currently translated at 64.2% (122 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/hu/
2020-10-31 12:50:08 +00:00
Jeff Huang
f527dcf1fc Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hant/
2020-10-31 12:50:07 +00:00
Besnik Bleta
ae05305e52 Translated using Weblate (Albanian)
Currently translated at 99.4% (1919 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sq/
2020-10-31 12:50:06 +00:00
Nikita Epifanov
386546dd21 Translated using Weblate (Russian)
Currently translated at 99.8% (1926 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ru/
2020-10-31 12:50:05 +00:00
Marcelo Filho
88021dbf5e Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/
2020-10-31 12:50:05 +00:00
random
a99de88709 Translated using Weblate (Italian)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/it/
2020-10-31 12:50:03 +00:00
notramo
3fe677986e Translated using Weblate (Hungarian)
Currently translated at 95.1% (1835 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/hu/
2020-10-31 12:50:03 +00:00
ynerant
8990089c65 Translated using Weblate (French)
Currently translated at 99.8% (1926 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fr/
2020-10-31 12:50:01 +00:00
Hivaa
f70efa2852 Translated using Weblate (Persian)
Currently translated at 75.6% (1460 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fa/
2020-10-31 12:50:00 +00:00
Priit Jõerüüt
caa29bf7da Translated using Weblate (Estonian)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/et/
2020-10-31 12:49:55 +00:00
Tirifto
d05a394134 Translated using Weblate (Esperanto)
Currently translated at 99.1% (1912 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/eo/
2020-10-31 12:49:54 +00:00
Nikolai Zahariev
18cc689209 Translated using Weblate (Bulgarian)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/bg/
2020-10-31 12:49:53 +00:00
Markus
7a11ab5bca Updated CHANGES.md 2020-10-31 13:48:53 +01:00
Markus
aa2a24e68a Changes requested by BillCarsonFs review. Thanks for the comments! 2020-10-31 13:17:25 +01:00
Hakim Oubouali
e3eccf48a3 Added translation using Weblate (Central Atlas Tamazight) 2020-10-31 07:37:35 +00:00
Benoit Marty
1db120a963 cleanup 2020-10-30 18:08:11 +01:00
Benoit Marty
fca0aa2cc4 KeysBackup: Avoid using !!, should fix #2262 2020-10-30 17:17:25 +01:00
Benoit Marty
0bcf42dbb8 KeysBackup: some API parameters are mandatory, so stop considering them as optional and avoid using !!
Also fix an issue with Json name: `hash` -> `etag`
Add some `internal` modifier (not as much as I would like to)
var -> val
Remove unused code
2020-10-30 16:14:33 +01:00
Benoit Marty
14e7e5e9fd Avoid usage of !! 2020-10-30 14:29:44 +01:00
Benoit Marty
1fcbf7ed42 Release backupOlmPkEncryption 2020-10-30 14:16:04 +01:00
Benoit Marty
a639ac42c4
Merge pull request #2326 from vector-im/feature/bma/changelog
Feature/bma/changelog
2020-10-30 14:01:44 +01:00
Benoit Marty
c38a8599f1
Merge branch 'develop' into feature/bma/changelog 2020-10-30 14:01:35 +01:00
Benoit Marty
0d8a845a21
Merge pull request #2324 from vector-im/feature/bma/search_highlight
Feature/bma/search highlight
2020-10-30 13:57:02 +01:00
Benoit Marty
588c2cad15 Add graphic resources for F-Droid (#812, #2220) 2020-10-30 12:25:08 +01:00
Benoit Marty
4b2fbd4344 Prepare changelog for F-Droid (#2296) 2020-10-30 12:16:52 +01:00
Benoit Marty
d654771fcf
Merge pull request #2318 from vector-im/feature/bca/fix_duplicate_reaction_echo
Fix ui echo isues
2020-10-30 11:56:51 +01:00
Valere
1de1ddd496 Fix / bg sync for received by other session + dismiss full screen intent 2020-10-30 11:53:20 +01:00
Onuray Sahin
33a962b721 Start sync when receive m.call.invite. 2020-10-30 11:53:20 +01:00
Benoit Marty
4791eb85af
Merge pull request #2283 from vector-im/feature/bca/crypto_perf
Crypto cleaning and perf improvement
2020-10-30 11:11:34 +01:00
Benoit Marty
47a9074695 Cleanup 2020-10-30 10:59:11 +01:00
Benoit Marty
819722f47a
Merge pull request #2320 from vector-im/feature/ons/fix_emoji_dark_theme
Fix background color of reactions.
2020-10-30 10:31:52 +01:00
Onuray Sahin
8b7c2b3607 Remove hardcoded size. 2020-10-30 12:13:44 +03:00
Benoit Marty
78170b7052 Self-review 2020-10-30 09:44:47 +01:00
Benoit Marty
46e5d23f7e Fix refresh screen issue 2020-10-30 09:36:58 +01:00
Benoit Marty
316f26ec82 Search: Add "No more results" item (iso Element Web) 2020-10-30 09:33:13 +01:00