Commit graph

1550 commits

Author SHA1 Message Date
Benoit Marty
bcefbb9861 Render body for m.room.message if msgtype is unknown, in timeline and as room list last message. #1539 2023-10-11 16:18:24 +02:00
Benoit Marty
8c2a5f281b MessageContent.type cannot be null 2023-10-11 16:14:15 +02:00
Benoit Marty
1b0e044565 Move OtherState to its own file. 2023-10-11 16:06:49 +02:00
Benoit Marty
8482e2da6f Move FormattedBody to its own file. 2023-10-11 16:05:47 +02:00
Benoit Marty
d8a30f30c5 Move MembershipChange to its own file. 2023-10-11 16:05:19 +02:00
Benoit Marty
4c97a63cd3 Move MessageFormat to its own file. 2023-10-11 16:04:41 +02:00
Benoit Marty
9cb8537c4e Move MessageType to its own file. 2023-10-11 16:03:18 +02:00
Benoit Marty
2962032fe5 Move InReplyTo to its own file. 2023-10-11 16:01:36 +02:00
jonnyandrew
6e9d19884c
Refactor composer UI components to separate files (#1506)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-10 08:31:36 +00:00
Benoit Marty
70cdb4a2fc Fix compilation warning in tests. 2023-10-10 10:01:01 +02:00
Marco Romano
096d57517e
Optimize use of blurhash algo in bloom modifier (#1509)
- Reduced to 20px the size of the bitmap we encode the blurhash from.
- Reduced the blurhash components from 5 to 4.

As per suggestions in: https://github.com/woltapp/blurhash#good-questions
2023-10-09 16:24:37 +02:00
bmarty
cd120b408f Sync Strings from Localazy 2023-10-09 00:09:28 +00:00
Jorge Martin Espinosa
776d935cfa
Add more tests, particularly to the room list diffing (#1508)
* Add more tests to improve the covered area, particularly the room list diffing
2023-10-06 15:34:36 +02:00
jonnyandrew
9e73d6ddc2
Add feature flag for voice messages (#1507) 2023-10-06 12:53:47 +00:00
ganfra
daf46d77e8
Merge pull request #1482 from vector-im/renovate/appyx
Update appyx to v1.4.0
2023-10-06 12:08:27 +02:00
ganfra
330ed73dab Appyx : quick management of PermanentChild 2023-10-06 11:44:09 +02:00
Jorge Martin Espinosa
6a7713a6f8
Improve coverage in permalinks package (#1502)
* Improve coverage in permalinks package
2023-10-06 11:37:26 +02:00
Jorge Martin Espinosa
ffef9d936a
Fix: WebP images can't be sent as media. (#1501)
* Fix: WebP images can't be sent as media.

* Place the `BitmapFactory.Options` mode change and comment where it belongs.
2023-10-06 09:18:11 +00:00
Benoit Marty
2a7a66fb18 Emote: format notification 2023-10-05 15:31:10 +02:00
Benoit Marty
303b174009 Emotes starts with * 2023-10-05 10:47:00 +02:00
Benoit Marty
0edf53de5f Convert object to data object 2023-10-05 10:43:00 +02:00
Benoit Marty
dea8748907
Merge pull request #1487 from vector-im/feature/bma/uiCleanup
Small cleanup
2023-10-05 09:01:57 +02:00
Benoit Marty
34d05e01eb Fetch edited event in advanced (similar to reply mode). 2023-10-04 17:38:17 +02:00
Marco Romano
8f3987b98c Destroy EventTimelineItem pointer after use 2023-10-04 15:00:29 +02:00
Marco Romano
3a49ab984c Handle breaking change in innerRoom.edit() 2023-10-04 10:33:29 +02:00
Benoit Marty
e344a8fbaf Add preview for InfoListOrganism 2023-10-04 09:16:19 +02:00
Benoit Marty
7a9ac33caa Move InfoListItemMolecule to the molecules package. 2023-10-04 09:09:46 +02:00
Benoit Marty
af6dcadd4a Move InfoListOrganism to the new organisms package. 2023-10-04 09:08:57 +02:00
Benoit Marty
de39179b9d
Merge pull request #1465 from vector-im/feature/bma/codeCoverage
Improve code coverage
2023-10-02 10:18:31 +02:00
bmarty
7e3b9d8d3b Sync Strings from Localazy 2023-10-02 00:09:47 +00:00
Marco Romano
fc205698c6
Display poll notifications in the notification drawer (#1467)
Display notifications for polls as if they were message events.
2023-09-29 16:57:03 +02:00
Benoit Marty
37249261e1 Add test for MatrixClientsHolder 2023-09-29 15:34:02 +02:00
jonnyandrew
53cf82f025
[Rich text editor] Add full screen mode (#1447)
- Add full screen mode for the rich text editor (RTE). When text formatting options are enabled, the editor can be dragged to full screen.
- Remove `ConstraintLayout` from `textcomposer` module, now made much simpler now the RTE supports being called in multiple layouts matrix-org/matrix-rich-text-editor#822

- Part of vector-im/element-meta#1973
- Includes design from #1315
- Fixes #1293 (through new layout)
- Fixes #1394 (through inclusion of matrix-org/matrix-rich-text-editor#824)
- Fixes #1259 (through inclusion of matrix-org/matrix-rich-text-editor#820)

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-29 09:11:18 +00:00
ganfra
fa82639c4f
Merge pull request #1457 from vector-im/feature/fga/suspend_subscribe_unsubscribe_sync
Room : makes subscribeToSync/unsubscribeFromSync suspendable
2023-09-29 10:15:58 +02:00
ganfra
74735605e4 Room : makes subscribeToSync/unsubscribeFromSync suspendable and makes sure we keep subscription count 2023-09-28 20:16:19 +02:00
Benoit Marty
2cce7f3b47 Fix lint UnnecessaryComposedModifier and make it an error 2023-09-28 16:55:21 +02:00
Benoit Marty
c9c7af6e06 Simplify the management of inReplyToEventTimelineItem 2023-09-27 11:31:12 +02:00
Benoit Marty
a192a8823f Ensure getEventTimelineItemByEventId is called when we enter in reply mode. 2023-09-27 10:48:31 +02:00
Benoit Marty
aefeb01cdd Reduce the number of fallback notification. Only used now when message cannot be decrypted.
Also avoid using `else` in this `when` block.
2023-09-27 10:12:04 +02:00
Benoit Marty
cf657df5fd Fix API break with Matrix SDK 0.1.58. 2023-09-27 09:44:58 +02:00
Benoit Marty
8e24d5991c
Merge pull request #1436 from vector-im/feature/bma/mutableIntFloat
Mutable int float
2023-09-26 18:31:36 +02:00
Benoit Marty
f607b557ff
Merge pull request #1432 from vector-im/feature/bma/installApk
Install apk from the app - REQUEST_INSTALL_PACKAGES
2023-09-26 18:15:35 +02:00
Benoit Marty
702c137ead Replace mutableStateOf by mutableIntStateOf and mutableFloatStateOf. Use intValue and floatValue to avoid unboxing. 2023-09-26 18:07:53 +02:00
Benoit Marty
3f73443ebb Be able to install APK from Element X. 2023-09-26 17:48:26 +02:00
Benoit Marty
e7ba973e7b Improve default mime type. 2023-09-26 17:48:26 +02:00
Benoit Marty
34631f53b3 Avoid hard-coded string. 2023-09-26 17:48:26 +02:00
Marco Romano
2e6581a5ad
Show poll creator view in timeline (#1429)
- Shows edit/end poll buttons when the user is the creator of the poll.
- Only the end poll button is wired right now as there is no "edit poll" screen yet.
2023-09-26 11:19:24 +02:00
bmarty
c72bb92ef2 Sync Strings from Localazy 2023-09-25 00:09:17 +00:00
Benoit Marty
8fc7a79d9c
Merge pull request #1405 from vector-im/feature/bma/timelineGlitch
Add animation on the timeline content, to avoid glitch (#1323)
2023-09-21 22:12:59 +02:00
Marco Romano
f81a4bf0f8
Upgrade Rust SDK to v0.1.57 (#1401)
- Enables polls in room summaries from https://github.com/vector-im/element-x-android/pull/1387
- Accommodates a few breaking changes
2023-09-21 19:48:19 +00:00