update fork #128

Manually merged
tristan merged 181 commits from mirror/monocles_chat_clean:master into master 2026-01-23 14:02:38 +01:00

181 commits

Author SHA1 Message Date
Arne
cb301bbb14 Prepare version 2.1
Some checks failed
Android CI / build (pull_request) Has been cancelled
2026-01-22 21:29:56 +01:00
Arne
36d4770688 Update translations 2026-01-22 21:27:44 +01:00
Arne
8e470644ef Refactor CommentsAdapter and set roster as access model for feeds 2026-01-22 21:23:44 +01:00
Arne
617dd4fb9a Allow comment author to retract their own comment 2026-01-22 16:56:41 +01:00
Arne
fa30d4cd88 Use presence-based access model for microblogging 2026-01-22 16:15:36 +01:00
Arne
c71837136f Fix pubsub post retractions in messages 2026-01-22 12:38:07 +01:00
Arne
a7bcce88ff Live handling of posts comments 2026-01-21 23:54:35 +01:00
Arne
8423a6bbc8 Show list of people who liked a post on long press
Some checks are pending
Android CI / build (pull_request) Waiting to run
2026-01-21 17:38:32 +01:00
Arne
904159f49e Revert "Add preference for custom client resource name"
This reverts commit 16a70dd8
2026-01-21 15:01:11 +01:00
Arne
c533fd4362 Revert "Update client resource handling and generation"
This reverts commit 8b8930a679.
2026-01-21 15:00:42 +01:00
Arne
651d642cf0 Use post ID for Atom entry ID in microblog posts 2026-01-21 14:49:29 +01:00
Arne
4396aed27c Rename posts reply to comment 2026-01-21 11:29:14 +01:00
Arne
1c6d075462 Persist selected account in CreatePostActivity 2026-01-21 11:21:19 +01:00
Arne
e7d2b42f54 Add preview of original post when commenting 2026-01-21 10:14:18 +01:00
Arne
6db8b174ad Improve create post layout 2026-01-21 09:49:23 +01:00
Arne
4a2ca643e7 Fix like icon change, enable unliking posts when the liking account is offline and add missing namespace 2026-01-21 09:41:07 +01:00
Arne
e2478d2c41 Announce support for microblogging 2026-01-20 21:45:56 +01:00
Arne
56a17c1e07 Add like button to posts
Some checks are pending
Android CI / build (pull_request) Waiting to run
2026-01-20 13:34:03 +01:00
Arne
1c51bbd21a Allow post author to retract comments 2026-01-20 12:12:42 +01:00
Arne
c53745816e Fix use the correct social feed node and notify on retract 2026-01-20 10:57:20 +01:00
Arne
3ecba8671d Fix parsing of Atom timestamps for comments 2026-01-20 09:30:33 +01:00
Arne
a06ba5d716 Revert "Remove redundant post_id extra from reply intent"
This reverts commit 057f74a435.
2026-01-20 04:16:20 +01:00
Arne
27436e1cef Reset comment adapter to recycled comments
Some checks are pending
Android CI / build (pull_request) Waiting to run
2026-01-20 04:15:09 +01:00
Arne
057f74a435 Remove redundant post_id extra from reply intent 2026-01-20 03:56:17 +01:00
Arne
1de84e71a2 Enable replies to microblog posts 2026-01-20 03:30:28 +01:00
Arne
472f55a3a2 Trying to fix skipping last story item 2026-01-19 17:41:44 +01:00
Arne
8dd13456bc Make hashtags only in expanded posts clickable 2026-01-19 17:04:32 +01:00
Arne
38d541bae6 Show all posts again when press back, expand when on post summary clicked and make text selectable again 2026-01-19 10:20:30 +01:00
Arne
7090ad6be0 Merge remote-tracking branch 'origin/master' 2026-01-19 09:46:42 +01:00
Arne
8ca59489ab Shorten "send_encrypted_message" string 2026-01-19 09:46:30 +01:00
Arne
66210850e4 Update README-fr.md
Improve string
2026-01-19 09:43:18 +01:00
Arne
fb1e2bb3fc Add search functionality and clickable hashtags to PostsActivity
Some checks are pending
Android CI / build (pull_request) Waiting to run
2026-01-19 01:02:47 +01:00
Arne
d85f929c10 Reply to stories with preview 2026-01-18 23:40:33 +01:00
Arne
82f0bba80e Use same ID for pubsub item and atom entry in stories 2026-01-18 21:23:52 +01:00
Arne
97d986219d Move story progress bar inside AppBarLayout 2026-01-18 21:23:51 +01:00
Arne
a05dc01656 Fix reappearing older stories after creating a new one 2026-01-18 21:23:50 +01:00
Arne
b13374599c Remove Glide RequestOptions in MediaViewerActivity fixes crash on some large image preview 2026-01-18 21:23:50 +01:00
Arne
c6bfdea1b7 Change send_last_published_item to on_sub_and_presence 2026-01-18 21:23:49 +01:00
Arne
34c841063d Testing Glide with OkHttp for proxy support 2026-01-18 21:23:49 +01:00
Arne
78df1436b1 Add video icon overlay to video posts 2026-01-18 21:23:48 +01:00
Arne
54e4993495 Update posts when feed follow status in contact details changes 2026-01-18 21:23:48 +01:00
Arne
66b89824a8 Fix video preview dialog not being centered 2026-01-18 21:23:47 +01:00
Arne
ab5d7912f5 Show progress bar while loading post attachments and move posts publishing in background for bigger files 2026-01-18 21:23:47 +01:00
Arne
6ea1d4a2dd Disable feed follow switch during (un)subscribe operations 2026-01-18 21:23:47 +01:00
Arne
b1bafd8197 Render Markdown in microblog posts 2026-01-18 21:23:46 +01:00
Arne
9c3aaad22f Refactor feed subscription to use IQ stanzas and allow following any contact 2026-01-18 21:23:46 +01:00
Arne
586e7b6495 Fix inconsistent post handling and timestamp parsing
- Use a list of listeners for post updates instead of a single listener, preventing race conditions.
- Add support for parsing Atom timestamp formats (XEP-0082).
- Update and refresh individual posts in the UI instead of reloading the entire list.
- Clean up post parsing logic in `IqParser` and `MessageParser`.
2026-01-18 21:23:45 +01:00
Arne
2665980599 Synchronize video playback with progress bar 2026-01-18 21:23:44 +01:00
Arne
f3a1f8fe19 Hide/show System UI on story pause/resume 2026-01-18 21:23:44 +01:00
Arne
ba15650d85 Automatically move to the next stories item and show progress bar 2026-01-18 21:23:43 +01:00
Arne
31acfc750e Fix suggestion button rotation animation 2026-01-18 21:23:43 +01:00
Arne
21ec005c12 Enable pubsub notifications and payloads by default 2026-01-18 21:23:41 +01:00
Arne
a5d74a7fee Rename "Posts" to "Feeds"
In the conversations overview menu, move "Stories" to the action bar for quicker access and move "Feeds" into the overflow menu.

Additionally, fix a layout issue where the post title could overlap with the attachment hint icon.
2026-01-18 21:23:41 +01:00
Arne
0fb694dd07 Improve various microblog UI parts 2026-01-18 21:23:40 +01:00
Arne
5d3bc5ed0c Initially follow feeds suggestions 2026-01-18 21:23:39 +01:00
Arne
e39252616c Add "Follow feed" switch to contact details and change the comments and posts node configuration 2026-01-18 21:23:39 +01:00
Arne
ad4cad9768 Create social feed and comments nodes when publishing posts and load feed after publishing or editing a post 2026-01-18 21:23:38 +01:00
Arne
565c4accaf Add XEP-0277 (Microblogging over XMPP) to supported XEP list 2026-01-18 21:23:37 +01:00
Arne
7bd895af17 Add swipe-to-refresh to posts list and fix text colors 2026-01-18 21:23:37 +01:00
Arne
6a772138a2 Add ability to edit posts with attachments 2026-01-18 21:23:36 +01:00
Arne
4f40d18fee Handle microblog post retractions
Implement handling for retracting microblog posts as defined in XEP-0451.

- Parse `<retract>` elements in both IQ and Message stanzas.
- Set `pubsub#send_last_published_item` to `never` on node creation.
- Add `notify="true"` attribute when retracting a post.
- Prevent duplicate posts from being added to the timeline.
- Handle post retraction in `PostsActivity` by removing the corresponding post.
2026-01-18 21:23:35 +01:00
Arne
e63f6e9ff7 Implement live updates for microblog posts
Introduce listeners to receive and retract microblog posts in real-time. This allows the post view to update automatically when new posts are received or existing ones are retracted, without requiring a manual refresh.

Key changes include:
- Add `OnPostReceived` and `OnPostRetracted` listeners in `XmppConnectionService`.
- Parse incoming microblog posts from both IQ stanzas and pubsub event messages.
- Update the `PostsActivity` to reflect new and retracted posts instantly.
- Pass the `postId` on post retraction for more specific UI updates.
- Announce support for the `urn:xmpp:microblog:0` namespace.
2026-01-18 21:23:35 +01:00
Arne
e004487b70 Persist posts in database 2026-01-18 21:23:35 +01:00
Arne
087b61a453 Fix replying to microblog post 2026-01-18 21:23:34 +01:00
Arne
cd7e529b4d Allow creating videos for posts and add preview 2026-01-18 21:23:32 +01:00
Arne
8119cda65d Hide account spinner in CreatePostActivity when editing 2026-01-18 21:23:31 +01:00
Arne
927e1656d5 Add MediaController to video view in post adapter 2026-01-18 21:23:31 +01:00
Arne
0941a51750 Prompt user to choose account for post interactions 2026-01-18 21:23:30 +01:00
Arne
5aba2be212 Fix post author lookup and display fallback 2026-01-18 21:23:29 +01:00
Arne
e25434ed06 Use account of post author for microblog actions 2026-01-18 21:23:29 +01:00
Arne
176f4c3af0 Sort comments by date 2026-01-18 21:23:28 +01:00
Arne
e3ca04031a Aggregate posts from all enabled accounts and prevent posts from being reloaded on every onStart or UI refresh if the list is already populated. 2026-01-18 21:23:28 +01:00
Arne
8330a1931b Show video preview in social posts 2026-01-18 21:23:27 +01:00
Arne
d8c342392d Only show online and connected accounts in CreatePostActivity 2026-01-18 21:23:27 +01:00
Arne
159354cb92 Add image preview dialog for post attachments 2026-01-18 21:23:26 +01:00
Arne
2d9265f6de Partially fix ability to publish comments on posts 2026-01-18 21:23:26 +01:00
Arne
6f4f14fede Allow selecting account when publishing a post 2026-01-18 21:23:25 +01:00
Arne
6f6bf3ca47 Expand post by clicking on title 2026-01-18 21:23:24 +01:00
Arne
7164592a2d Refactor: Rename Posts to Feeds and move to bottom navigation bar 2026-01-18 21:23:22 +01:00
Arne
acced77320 Refactor post and comment publishing 2026-01-18 21:23:22 +01:00
Arne
a308ef2bc0 Show comments for expanded posts 2026-01-18 21:23:22 +01:00
Arne
86dd32e9a6 Show download button for non-image attachments 2026-01-18 21:23:21 +01:00
Arne
b9f87e830a Add support for attachments in posts 2026-01-18 21:23:21 +01:00
Arne
8fb6edc798 Adjust soft input mode in CreatePostActivity and use MaterialAlertDialogBuilder 2026-01-18 21:23:20 +01:00
Arne
4ad2399184 Allow editing and retracting of microblog posts 2026-01-18 21:23:20 +01:00
Arne
c97b7a48df Add reply, comment, and share actions to posts 2026-01-18 21:23:19 +01:00
Arne
71e4370acd Show expandable posts in Microblog stream 2026-01-18 21:23:19 +01:00
Arne
065005492d Use display name for post author and add onClick listeners to open contact details 2026-01-18 21:23:19 +01:00
Arne
90a5c330f8 Use MaterialToolbar in Posts and CreatePost activities 2026-01-18 21:23:18 +01:00
Arne
199a0a4026 Load and display avatars in post view 2026-01-18 21:23:17 +01:00
Arne
f8efbe567b Add author to microblog posts 2026-01-18 21:23:16 +01:00
Arne
9a61d4db1a Fetch and display posts from contacts 2026-01-18 21:23:16 +01:00
Arne
540707527f Add initially basic microblog support 2026-01-18 21:23:15 +01:00
Arne
6b1a117f07 Refine story publish count to subscribers only 2026-01-18 21:23:15 +01:00
Arne
3fd1516daa Configure pubsub#publish_model and pubsub#max_items 2026-01-18 21:23:14 +01:00
Arne
a806992b5c Improve story creation dialog with media preview 2026-01-18 21:23:13 +01:00
Arne
c6150583b6 Make story titles with long text scrollable 2026-01-18 21:23:13 +01:00
Arne
a572fadf38 Remove hardcoded DNS servers completely and improve DNS server setting 2026-01-18 21:23:13 +01:00
Arne
75c7f93e40 Revert "Remove default DNS servers"
This reverts commit e4da973884dbf4dafb03a8b7c7da3cf932e38e88.
2026-01-18 21:23:13 +01:00
Arne
fadb15a33a Remove default DNS servers 2026-01-18 21:23:13 +01:00
Arne
63b25c0a82 Improve and persist account order after drag-and-drop reordering 2026-01-18 21:23:10 +01:00
Arne
60e0b713ff Potentially fix double send files, fix setting allow unencrypted reactions and allow reply with file 2026-01-18 21:23:08 +01:00
Stephen Paul Weber
45278505f8 Never fall back to iterative DNS for DNSSEC
This can work around if your local resolver strips DNSSEC, but also it
means resolution is bonkers slow and might even take forever / fail if
DNS queries are blocked (because you're on TOR VPN or similar). So if
recursive DNSSEC fails, just fail DNSSEC and fall back to regular DNS lookups.

(cherry picked from commit d8152c4155ab5306f10ffbde7a7e0461ad98b656)
2026-01-18 21:23:08 +01:00
Arne
9b5db72bf9 Refresh call log after a call has ended 2026-01-18 21:23:07 +01:00
Arne
58aade6d86 Show own account JID in call history 2026-01-18 21:23:06 +01:00
Arne
4a489d8744 Refactor story loading fixes compatibility for older devices 2026-01-18 21:23:06 +01:00
Arne
6be4f174ee Add null checks to isAudioCid to prevent crashes 2026-01-18 21:23:05 +01:00
Arne
0ccf66cc16 Stop sending last published item on presence change 2026-01-18 21:23:05 +01:00
Arne
ab5c20af45 Change stories node access model 2026-01-18 21:23:04 +01:00
Arne
1269de5d23 Limit videos to one minute for stories 2026-01-18 21:23:03 +01:00
Arne
99144f4340 Show empty view in calls fragment, improve avatar shape fallback and fix rare crash in calls log 2026-01-18 21:23:02 +01:00
Arne
ecb299ec1f Add option to disable calls per contact 2026-01-18 21:23:02 +01:00
Arne
e71c8b99a8 Add blank line after quote fallback and reduce quote length 2026-01-18 21:23:01 +01:00
Arne
0b887c4c1c Show badge for missed calls in bottom navigation 2026-01-18 21:23:00 +01:00
Arne
c9db106111 Show icons in "call again" context menu 2026-01-18 21:23:00 +01:00
Arne
2036796360 Introduce a dedicated database query to fetch only call messages and improve calls history performance 2026-01-18 21:22:59 +01:00
Arne
0749fae937 Allow opening contact details from call history and move calls history list in a background thread 2026-01-18 21:22:59 +01:00
Arne
487577dba3 Color missed calls red in call history and add call status icons 2026-01-18 21:22:58 +01:00
Arne
b6b8156b43 Sort calls in CallsFragment by time in descending order 2026-01-18 21:22:58 +01:00
Arne
1b63d669b5 Show audio/video call options in call log 2026-01-18 21:22:57 +01:00
Arne
c59779b098 Display call date in call history 2026-01-18 21:22:57 +01:00
Arne
db5f319281 Fix correct avatar in call history 2026-01-18 21:22:57 +01:00
Arne
ce922ba8ce Refactor CallsFragment to use Message object and enable call again functionality 2026-01-18 21:22:56 +01:00
Arne
9b49e58a1d Replace Accounts with Calls in bottom navigation bar 2026-01-18 21:22:55 +01:00
Arne
f6ed6f0e14 Add initial call log screen 2026-01-18 21:22:54 +01:00
Arne
1c72dd6f18 Allow editing chat background images for single chats too 2026-01-18 21:22:54 +01:00
Arne
58e3785b09 Allow editing chat background images 2026-01-18 21:22:54 +01:00
Arne
4e1f47b84a Always show quote in reply to previous message 2026-01-18 21:22:54 +01:00
Arne
cd5524f218 Defer story loading until fragment is visible 2026-01-18 21:22:53 +01:00
Arne
1c82b9afad Prepare version 2.0.19 2026-01-18 21:22:51 +01:00
Arne
466fa3a40e Fix replying to story 2026-01-18 21:22:51 +01:00
Arne
65fbd02534 Show foreground notification during video transcoding for stories 2026-01-18 21:22:50 +01:00
Arne
f3b7f0cdf1 Transcode videos before uploading them for stories 2026-01-18 21:22:49 +01:00
Arne
465e28a879 Decouple story creation from message objects 2026-01-18 21:22:48 +01:00
Arne
ad28265ffe Show cached stories even when offline 2026-01-18 21:22:48 +01:00
Arne
f8e7639720 Reapply download and cache stories before displaying them + Fix single click to fade out panels 2026-01-18 21:22:48 +01:00
Arne
88b3c99107 Migrate StoryViewActivity to ViewPager2 2026-01-18 21:22:47 +01:00
Arne
2b744b882e Toggle UI visibility and navigate stories on touch 2026-01-18 21:22:46 +01:00
Arne
a24266b86b Refuse to parse story if author does not match publisher 2026-01-18 21:22:46 +01:00
Arne
fbab76909d Add author to story posts 2026-01-18 21:22:45 +01:00
Arne
b132f4aae2 Implement caching for stories 2026-01-18 21:22:45 +01:00
Arne
62778c6569 Add video capture option to story picker 2026-01-18 21:22:43 +01:00
Arne
e2d85da88c Allow publishing video stories 2026-01-18 21:22:43 +01:00
Arne
eaea75ac2e Fix publishing edited story images 2026-01-18 21:22:42 +01:00
Arne
0360e622cb Fix publishing stories with correct url 2026-01-18 21:22:42 +01:00
Arne
abb6249551 Automatically retract stories older than 24 hours 2026-01-18 21:22:41 +01:00
Arne
76e005afc8 Improve and fix timestamp parsing 2026-01-18 21:22:41 +01:00
Arne
3c63df5b6d Allow editing images before posting to stories 2026-01-18 21:22:40 +01:00
Arne
8fdf52681e Use AvatarWorkerTask to load avatars in StoryAdapter and improve StoryViewActivity actionbar 2026-01-18 21:22:40 +01:00
Arne
c8d25aa9bd Prioritize accounts with better avatars and online status for stories fixes adding contacts to other accounts 2026-01-18 21:22:39 +01:00
Arne
93e762b059 Show contact name and progress in StoryViewActivity 2026-01-18 21:22:38 +01:00
Arne
fbf61765c2 Prioritize real avatars over generated ones in stories 2026-01-18 21:22:37 +01:00
Arne
ccef12e552 Handle story retractions 2026-01-18 21:22:37 +01:00
Arne
36fd0e70cd Show delete button in StoryViewActivity only if the correct account is online 2026-01-18 21:22:37 +01:00
Arne
cad519db1e Show new stories badge in bottom navigation 2026-01-18 21:22:35 +01:00
Arne
be5aa295b0 Fix story publishing and display relative time of a story 2026-01-18 21:22:34 +01:00
Arne
37d817e2f8 Do not finish StoryViewActivity on invalid URL 2026-01-18 21:22:33 +01:00
Arne
ba83a3e5aa Hide stories and stories FAB if no account is online 2026-01-18 21:22:32 +01:00
Arne
2623d8e574 Filter stories to only show those from the last 24 hours 2026-01-18 21:22:32 +01:00
Arne
af57091048 Round story preview image corners 2026-01-18 21:22:31 +01:00
Arne
9a07321c37 Show placeholder animation immediately on load Story UI thread 2026-01-18 21:22:31 +01:00
Arne
0166c89d83 Set status and navigation bar colors in StoriesActivity 2026-01-18 21:22:30 +01:00
Arne
e3ef4809b3 Refactor stories into its own activity 2026-01-18 21:22:29 +01:00
Arne
55c302302e Show progress indicator while story image is loading 2026-01-18 21:22:29 +01:00
Arne
1b0dbc2ddc Add reply button to story view 2026-01-18 21:22:28 +01:00
Arne
391776080b Add reply button to story view 2026-01-18 21:22:28 +01:00
Arne
68392a101e Make web links clickable in story viewer 2026-01-18 21:22:27 +01:00
Arne
18ff45e1b3 Replace 'Add Story' icon with 'Add a Photo' icon 2026-01-18 21:22:27 +01:00
Arne
d123d28e02 Add camera option to story image picker 2026-01-18 21:22:25 +01:00
Arne
5aa9c8ca88 Add support for XEP-0501 (Pubsub Stories) 2026-01-18 21:22:24 +01:00
Arne
dad737eec3 Add menu option to show/hide stories 2026-01-18 21:22:24 +01:00
Arne
f72e57cabd Allow viewing all stories from a single contact 2026-01-18 21:22:23 +01:00
Arne
2c4cab4acb Remove deleted story from internal list immediately 2026-01-18 21:22:22 +01:00
Arne
d263614cec Allow deleting own stories 2026-01-18 21:22:22 +01:00
Arne
37125ce521 Refactor story publishing to not use dummy messages 2026-01-18 21:22:20 +01:00
Arne
b1559c096a Check for published element when parsing Story 2026-01-18 21:22:19 +01:00
Arne
117cfbc4fa Refactor story list item to use AvatarView 2026-01-18 21:22:19 +01:00
Arne
fd71bb55c2 Allow adding a title when publishing a story 2026-01-18 21:22:18 +01:00
Arne
3c2990821c Show titles of stories 2026-01-18 21:22:18 +01:00
Arne
aae28d0b2f Fix rudimentary uploading and publishing stories 2026-01-18 21:22:18 +01:00
Arne
51a7acbeef Add rudimentary support for viewing stories 2026-01-18 21:22:17 +01:00