Commit Graph

6363 Commits

Author SHA1 Message Date
SpiritCroc ce77b5f827 Update direct chat screenshots
Change-Id: I4dfe7452d8195d81938887872ef903eb2c5862da
2020-11-02 12:25:10 +01:00
SpiritCroc 65c365a157 Don't crash language selection just because we are in debug
Change-Id: I429dfee9ad08bd2578a9e24d0662ad60cdd7c917
2020-11-02 12:25:10 +01:00
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
SpiritCroc 5853709c97 Increment version
Change-Id: Id0f9498606265ff48842ca210358ee1541b18c38
2020-10-17 17:05:03 +02:00
SpiritCroc 863f07cbe4 Fix changing inactive theme
Bug introduced in commit 65716c0ee8.

Fixes:
- Change inactive theme
- Switch to inactive theme -> still the old theme setting

Change-Id: I1b56144ffdb5e0f33efa67702e8aa05065285488
2020-10-17 16:52:47 +02:00
SpiritCroc db7a82f567 Hide "invite" menu item
We can invite users over the "Participants" menu item as well, and
inviting users isn't something we do too often probably.

Change-Id: I0c4c77371f0b81d39b3ae65992ef0362acf83a7c
2020-10-17 16:47:34 +02:00
SpiritCroc 33d59b3ec6 Hide timeline_settings
This menu item was added upstream, but we already have the menu item
show_room_info which does the same thing, and I prefer its wording to
upstream.

Change-Id: I065eeec4b3fdf4751978776566350823f2da5131
2020-10-17 16:43:52 +02:00
SpiritCroc c5f59b9752 Fix mismerge
Change-Id: Ieb568d343a568a2b29297fe9824430ab5e8a4a94
2020-10-17 16:20:01 +02:00
SpiritCroc 6eff36c1a7 Fix duplicate resource build error
Move drawable-anydpi-v24 xmls to drawable-v24

Change-Id: I48aa8efb013715802cc87da0c43509dbda4ac5c8
2020-10-17 16:13:16 +02:00
SpiritCroc 0449e0ef83 Android Studio doesn't like this sha256sum here
Change-Id: Ibfb56e49e33e1c049ca95af676973debf9b183e5
2020-10-17 15:52:35 +02:00
SpiritCroc 6a3be2075e Add back upstream fastlane to upstream_fastlane for future merges
Change-Id: I5bc7d0683b222a65e3fef127359c5441e5058ab1
2020-10-17 15:43:39 +02:00
SpiritCroc bde0020305 Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Resolve required manual intervention in german strings""""""""
This reverts commit c22f2b7a9b.

Change-Id: I4b7ceb45da0ee77301c6323aa2ca12b76ca46738
2020-10-17 15:33:36 +02:00
SpiritCroc 835bde286c Automatic SchildiChat string correction
Change-Id: I44a73d45a7445a11037cbf3d0443147144a7d0ed
2020-10-17 15:28:34 +02:00
SpiritCroc cb2050b026 Automatic upstream merge postprocessing
Change-Id: I2085547f6bc20a86dae82dfd4d9db047b110d80f
2020-10-17 15:28:33 +02:00
SpiritCroc 44d3c0118a Merge remote-tracking branch 'upstream/master' into sc
Change-Id: If0e38334e7e479134cd05283f857e4871bb7692f

Conflicts:
	vector/build.gradle
	vector/src/main/AndroidManifest.xml
	vector/src/main/java/im/vector/app/features/home/RoomListDisplayMode.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailFragment.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageInformationData.kt
	vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt
	vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileActivity.kt
	vector/src/main/res/drawable/ic_settings_root_advanced.xml
	vector/src/main/res/drawable/ic_settings_root_call.xml
	vector/src/main/res/drawable/ic_settings_root_flair.xml
	vector/src/main/res/drawable/ic_settings_root_general.xml
	vector/src/main/res/drawable/ic_settings_root_help_about.xml
	vector/src/main/res/drawable/ic_settings_root_ignored_users.xml
	vector/src/main/res/drawable/ic_settings_root_labs.xml
	vector/src/main/res/drawable/ic_settings_root_legacy.xml
	vector/src/main/res/drawable/ic_settings_root_notification.xml
	vector/src/main/res/drawable/ic_settings_root_preferences.xml
	vector/src/main/res/drawable/ic_settings_root_security_privacy.xml
	vector/src/main/res/layout/fragment_home_drawer.xml
	vector/src/main/res/layout/fragment_login_splash.xml
	vector/src/main/res/layout/item_bottom_sheet_action.xml
	vector/src/main/res/layout/item_timeline_event_poll_stub.xml
	vector/src/main/res/layout/item_timeline_event_redacted_stub.xml
	vector/src/main/res/layout/view_avatar_selector.xml
2020-10-17 15:28:18 +02:00
SpiritCroc 0b082677cd [TMP] Automatic upstream merge preparation
Change-Id: Iffad17224984f49a361e9abffb7cae217beabcff
2020-10-17 15:09:01 +02:00
SpiritCroc 25b6357408 Revert "Automatic SchildiChat string correction"
This reverts commit 797e5a0490.
2020-10-17 15:09:01 +02:00
SpiritCroc c22f2b7a9b Revert "Revert "Revert "Revert "Revert "Revert "Revert "Resolve required manual intervention in german strings"""""""
This reverts commit f9fc7abbd2.
2020-10-17 15:09:00 +02:00
Benoit Marty 9298ca9c15 Merge branch 'release/1.0.9' 2020-10-16 17:33:01 +02:00
Benoit Marty ff84319e59 Prepare release 1.0.9 2020-10-16 17:09:31 +02:00
Benoit Marty dc7e0a5f88
Merge pull request #2259 from vector-im/feature/ons/fix_file_info_size
Uploading a file to a room caused it to have a info.size of -1
2020-10-16 17:05:26 +02:00
Benoit Marty 0ffe20d863 Small changes 2020-10-16 16:50:51 +02:00
Benoit Marty f3340f9789 Merge branch 'feature/bma/weblate_fix' into develop 2020-10-16 16:40:29 +02:00
Benoit Marty ca0af0f342 Fix bad cases 2020-10-16 16:38:33 +02:00
Benoit Marty aa91c41082 Fix lint issue 2020-10-16 16:36:09 +02:00
Benoit Marty 16579348f4
Merge pull request #2265 from RiotTranslateBot/weblate-element-android-element-app
Translations update from Weblate
2020-10-16 16:34:37 +02:00
Benoit Marty b07e7a4a36 Use file.length if cursor returns -1 as file size.
Author: Onuray (squashed)
2020-10-16 16:11:11 +02:00
Weblate dea994c1fb Merge branch 'origin/develop' into Weblate. 2020-10-16 14:02:54 +00:00
Benoit Marty 3bf11d1a0b Translated using Weblate (Slovak)
Currently translated at 86.3% (164 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/sk/
2020-10-16 14:02:44 +00:00
Benoit Marty dce60d0061 Translated using Weblate (Kabyle)
Currently translated at 88.4% (168 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/kab/
2020-10-16 14:02:44 +00:00
Benoit Marty 31e73b2f8c Translated using Weblate (Estonian)
Currently translated at 100.0% (190 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/et/
2020-10-16 14:02:44 +00:00
Benoit Marty d314c8ae58 Translated using Weblate (Bengali (India))
Currently translated at 88.4% (168 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/bn_IN/
2020-10-16 14:02:44 +00:00
Benoit Marty e19af47b77 Translated using Weblate (Italian)
Currently translated at 100.0% (190 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/it/
2020-10-16 14:02:44 +00:00
Benoit Marty 94f7cfeb86
Merge pull request #2263 from vector-im/feature/fga/fix_composer_constraint
Fix composer: update constraints layout and fix some glitches
2020-10-16 15:30:24 +02:00
ganfra 9bf615e90c Fix composer: update constraints layout and fix some glitches 2020-10-16 11:24:59 +02:00
Samu Voutilainen 003bffe463 Translated using Weblate (Finnish)
Currently translated at 80.3% (1541 of 1918 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fi/
2020-10-16 09:04:53 +00:00
Marcelo Filho 021c23cd19 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1918 of 1918 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/
2020-10-16 09:04:53 +00:00
random 821b9dc187 Translated using Weblate (Italian)
Currently translated at 100.0% (1918 of 1918 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/it/
2020-10-16 09:04:50 +00:00
LinAGKar 72a7bf9e23 Translated using Weblate (Swedish)
Currently translated at 100.0% (190 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/sv/
2020-10-16 09:04:48 +00:00
Nikita Epifanov 5cb46dba6c Translated using Weblate (Russian)
Currently translated at 98.9% (188 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/ru/
2020-10-16 09:04:47 +00:00
linsui ba3500baf6 Translated using Weblate (Chinese (Simplified))
Currently translated at 97.8% (186 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/zh_Hans/
2020-10-16 09:04:47 +00:00
Priit Jõerüüt f82ee5efdd Translated using Weblate (Estonian)
Currently translated at 100.0% (190 of 190 strings)

Translation: Element Android/Element Android Sdk
Translate-URL: https://translate.element.io/projects/element-android/element-sdk/et/
2020-10-16 09:04:47 +00:00
TR_SLimey ab8c9bd269 Translated using Weblate (Polish)
Currently translated at 79.7% (1529 of 1918 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pl/
2020-10-16 09:04:47 +00:00
linsui 1692a52e0a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (1918 of 1918 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hans/
2020-10-16 09:04:46 +00:00