Commit graph

6503 commits

Author SHA1 Message Date
Stephen Paul Weber
71e22e3557 WebXDC file sent with no thread is just a file
Don't try to get updates from the non-thread and crash.

(cherry picked from commit db9748f380dc04bf7b452e087bb07a17c4ffb8f9)
2023-05-25 13:10:40 +02:00
Arne
20c95dbf3e Fix NPE (Cheogram) 2023-05-25 13:05:44 +02:00
Arne
0f4cc10d29 Actually clear reply fallback for directReply which doesn't have one (Cheogram) 2023-05-25 13:05:02 +02:00
Arne
3c6bf96b4c Initial support for XEP-0221 (Cheogram) (Experimental) 2023-05-25 13:02:18 +02:00
Arne
745a8010c6 Do not show geo URI as message body (Cheogram) 2023-05-25 12:44:40 +02:00
Arne
0ca1d9924f On slow devices even blurhash decode costs enough to do on background thread (Cheogram) 2023-05-25 12:39:29 +02:00
Arne
143b0c1043 Do not load from DB in UI thread (Cheogram) 2023-05-25 12:26:08 +02:00
Arne
fcf0b197f2 Do not miss actions if they come after the form (Cheogram) 2023-05-25 12:15:55 +02:00
Stephen Paul Weber
bc15561f2a Use bookmark name for a contact when there is no roster item but is a bookmark
Especially useful since shortcut code assumes contact right now.

(cherry picked from commit ed7388db6d6a7e2660a118931a09754b786c005a)
2023-05-25 12:13:39 +02:00
Arne
e4df28a70e Once you have really entered an onboarding flow, don't bail out (Cheogram) 2023-05-25 12:13:15 +02:00
Arne
42186e0103 Make text-multi and multi-jid work at all (Cheogram) 2023-05-25 12:09:01 +02:00
Arne
59ec4aee03 Make result field tall enough to show all items (Cheogram) 2023-05-25 11:56:28 +02:00
Arne
d24f778a58 Fix NPE (Cheogram) 2023-05-25 11:54:28 +02:00
Arne
4cced5517b Use proper unicode codepoint offsets for fallback (Cheogram) 2023-05-25 11:53:20 +02:00
Arne
16634d7269 Fix location of cleanup menu item (Cheogram) + update string 2023-05-25 11:41:58 +02:00
Arne
8537b5b66e Fix NPE (Cheogram) 2023-05-25 11:34:51 +02:00
Arne
9941cc3cf6 Fix @here multiline message (Cheogram) + surround ADD shortcut and createOpenDocumentTreeIntent with sdk min 23/29 2023-05-25 11:32:45 +02:00
Arne
57a6f66d2b Make long press to copy more reliable (Cheogram) 2023-05-25 11:28:45 +02:00
Arne
254342d6ab Add cleanup conversation option (Cheogram) 2023-05-25 11:27:39 +02:00
Arne
d155261a2e update russian strings 2023-05-25 11:23:03 +02:00
Arne
d0e3ed751f continue to ask next question when first answer is no (Cheogram) + return null on phoneAccountHandle when sdk >= M 2023-05-25 11:17:59 +02:00
Arne
46419fca35 FEATURE_CONNECTION_SERVICE still exists in 33 (Cheogram) 2023-05-25 11:11:41 +02:00
Stephen Paul Weber
6f0ce60191 Consider subject and thread part of the correctable content of a message (Cheogram) 2023-05-25 11:08:25 +02:00
Stephen Paul Weber
e8aaf56b26 Fix index out of bounds issue (Cheogram) 2023-05-25 10:49:22 +02:00
Arne
d56f3deec8 Phone number and date formatting for result forms (Cheogram) 2023-05-25 10:46:48 +02:00
Arne-Brün Vogelsang
b6212da814 Merge pull request 'Update spanish strings' (#81) from Pirujo/monocles_chat_translate:pirujo-patch-updstrings into master
Reviewed-on: https://codeberg.org/Arne/monocles_chat/pulls/81
2023-05-25 08:29:34 +00:00
Arne
521fd4953a Allow disco of bare jid when offline (Cheogram) 2023-05-25 10:28:36 +02:00
Arne
9e73098635 Fix NPE (Cheogram) 2023-05-25 10:22:16 +02:00
Arne
bd3f9388f0 Do not ban short usernames (Cheogram) 2023-05-25 10:21:44 +02:00
Arne
82f5b64004 WebXDC is launched from chat, so return there on close (Cheogram) 2023-05-25 10:20:20 +02:00
Arne
38aa32978b compatibility for sdk < 23 2023-05-25 10:19:26 +02:00
Arne
46d2a5384d Allow adding WebXDC app to homescreen (Cheogram) 2023-05-25 10:18:09 +02:00
Arne
3a920e2c86 Export WebXDC updates (Cheogram) 2023-05-25 10:15:38 +02:00
Arne
5a6a10d5ba Clear webxdc updates along with conversation (Cheogram) 2023-05-25 10:14:28 +02:00
Arne
86a2a57f26 Use image cache to prevent spamming threads (Cheogram) 2023-05-25 10:13:20 +02:00
Pirujo
666583b184 Update spanish strings 2023-05-25 08:12:04 +00:00
Arne
8757c5024b DNS table was too wide but not being responsived (Cheogram) 2023-05-25 10:11:02 +02:00
Arne
6485f63658 Reset prefix/suffix label on next use (Cheogram) 2023-05-25 10:05:59 +02:00
Arne
eaadc0c3ae Use username if there is no displayName (Cheogram) 2023-05-25 10:04:16 +02:00
Stephen Paul Weber
24f293d394 Show WebXDC name and icon (Cheogram) 2023-05-25 10:01:26 +02:00
Arne
c6bc86f2c1 little redesign contact details 2023-05-25 05:44:05 +02:00
Arne
6e595364ea rename Room to group 2023-05-25 00:05:50 +02:00
Arne
f6bf660855 fix crash on android 5 2023-05-24 22:41:54 +02:00
Arne-Brün Vogelsang
717e0e535d Merge pull request 'Add spanish string' (#80) from Pirujo/monocles_chat_translate:pirujo-patch-snikket into master
Reviewed-on: https://codeberg.org/Arne/monocles_chat/pulls/80
2023-05-24 19:33:26 +00:00
Arne
04859a781b Menu item to add shortcut (Cheogram) 2023-05-24 20:18:53 +02:00
Arne
ab5ffe7a72 Copy page1/page2 from old conversation on reInit if needed + add onboarding domain (Cheogram) 2023-05-24 20:08:08 +02:00
Arne
73b0e4d540 Make certain we sort by serial (Cheogram) 2023-05-24 19:39:27 +02:00
Arne
f121e77ca9 Show document title in message as well (Cheogram) 2023-05-24 19:36:22 +02:00
Arne
76e8cb5f48 Better tab title (Cheogram) 2023-05-24 19:01:12 +02:00
Arne
72a6b50bf9 reparent if parented (Cheogram) 2023-05-24 18:58:16 +02:00
Arne
4b722cce64 Use MUC nick for MUC webxdc (Cheogram) 2023-05-24 18:51:21 +02:00
Stephen Paul Weber
6f10ce44ea Stop double updates from MUC (Cheogram) 2023-05-24 18:13:07 +02:00
Arne
6bed2bc145 In case we get a state update with no conversation, probably don't want to lose it (Cheogram) 2023-05-24 17:53:00 +02:00
Arne
0e84e546ed Reparent if already parented + Validate and throw to track this more closely (Cheogram) 2023-05-24 17:50:27 +02:00
Arne
87706b8b96 Initial WebXDC prototype (Cheogram) 2023-05-24 17:45:07 +02:00
Arne
a08a724988 Allow null body for message (Cheogram) 2023-05-24 17:02:53 +02:00
Arne
e379959a2d Send a useful filename more often (Cheogram) 2023-05-24 16:53:38 +02:00
Arne
9a068d8f12 Send mime type in sims and get from there too sometimes (Cheogram) 2023-05-24 16:51:05 +02:00
Arne
eb3a0e951f Some work towards bubbles (Cheogram) 2023-05-24 16:46:26 +02:00
Arne
37f6d70e49 Fix reactions 2023-05-24 16:41:26 +02:00
Arne
90de0678f5 Use conversation notifications (Cheogram) 2023-05-24 16:24:33 +02:00
Arne
438820eab9 Set notification Person key and important(Cheogram) 2023-05-24 16:20:07 +02:00
Arne
f5b7930c37 Do not crash app if there is trouble setting the audio manager back to normal + Fix NPE + Don't crash if dialog dismiss fails (Cheogram) 2023-05-24 16:16:29 +02:00
Arne
dde7ff7d24 Follow the adapter rules more closely (Cheogram) 2023-05-24 15:55:32 +02:00
Arne
11c55de8cf If unregister fails we should log but not crash (Cheogram) 2023-05-24 15:27:52 +02:00
Arne
b3dd676ab7 Reduce RAM pressure by the cache a bit + add Drawable aching + fix on crash when receiving sticker (Cheogram) 2023-05-24 15:15:13 +02:00
Arne
9abcc8535a Better logging, separate pending from live (Cheogram) 2023-05-24 14:53:11 +02:00
Arne
532ab85789 List XEP-0224 in doap + Fix NPE (Cheogram) 2023-05-24 14:47:44 +02:00
Arne
d36b1b00d8 Notify on attention messages from MUC member or higher (Cheogram) 2023-05-24 14:44:24 +02:00
Arne
31854281b6 Notify on attention messages from MUC member or higher (Cheogram) 2023-05-24 14:37:18 +02:00
Arne
d2945a1073 Use startForegroundService directly (Cheogram) 2023-05-24 14:20:23 +02:00
Arne
694543f7f5 Fix possible ConcurrentModificationException (Cheogram) 2023-05-24 14:19:09 +02:00
Arne
9f58bd925b Set default audio device based on dialler selected route (Cheogram) 2023-05-24 14:14:49 +02:00
Arne
ef5686bb30 Fix NPE (Cheogram) 2023-05-24 14:08:46 +02:00
Arne
849ccd8195 If a command response indicates an XMPP URI, jump to that (Cheogram) 2023-05-23 20:26:44 +02:00
Arne
af05c6552a Throttle BobTransfer re-attempts + Fix DTMF causes trak to become disposed (Cheogram) 2023-05-23 20:02:19 +02:00
Arne
cdc3fb0ba8 Delay showing command bar on refreshes (Cheogram) 2023-05-23 19:58:00 +02:00
Arne
de640501af Tags haven't been "read-only" for awhile 2023-05-23 19:52:54 +02:00
Stephen Paul Weber
9ceb6c8bc5 Respect tag visibility setting more often 2023-05-23 19:50:40 +02:00
Arne
bc49da760d Fix NPE 2023-05-23 19:33:07 +02:00
Arne
59bcc44225 Remove text format toolbar for now 2023-05-23 18:11:43 +02:00
Arne
0d3fcc4c40 Fetch and render vcard4 (Cheogram) 2023-05-23 17:22:39 +02:00
Arne
fb9623c420 Allow experimental suffix/prefix-label extensions (Cheogram) 2023-05-23 16:11:42 +02:00
Arne
1091ac3a77 type of null means text-single which is surely fillable (Cheogram) 2023-05-23 16:09:12 +02:00
Arne
4bf40edb19 Add system name and groups when adding a contact for the first time + revert "New contact" (Cheogram) 2023-05-23 16:05:03 +02:00
Arne
42a3a39acc Dedup across system tags and server tags (Cheogram) 2023-05-23 15:52:06 +02:00
Arne
1d3767a556 Fix NPE (Cheogram) 2023-05-23 15:49:54 +02:00
Arne
4c84016c0f Ping all online MUCs every second max ping interval 2023-05-23 15:47:55 +02:00
Arne
3c919f085c Adding monocles bridge to OMEMO exceptions 2023-05-23 15:31:11 +02:00
Arne
f576c2a9ab Resolve "Failed to inflate ..." warnings. (Cheogram) 2023-05-23 15:28:44 +02:00
Arne
b053f77e2b Allow files/images in replies (Cheogram) 2023-05-23 15:13:53 +02:00
Arne
34bfce7b55 Include source message in a forked-off thread "show only" view (Cheogram) 2023-05-23 15:05:05 +02:00
Arne
dc69486522 Remove debug log (Cheogram) 2023-05-23 14:57:47 +02:00
Arne
92cd00d6cf When cancel a reply, put threads back to default mode (Cheogram) 2023-05-23 14:55:01 +02:00
Arne
24032865cf Simulate incoming message/edit for incoming reactions (Cheogram) 2023-05-23 14:51:11 +02:00
Arne
4dda338aac And emoji reply is a reaction (Cheogram) 2023-05-23 14:40:08 +02:00
Arne
80e8dd3b02 Save the body we generated (Cheogram) 2023-05-23 14:32:35 +02:00
Arne
a66f2b6ae7 Swipe and reply menu should be the same (Cheogram) 2023-05-23 14:30:25 +02:00
Arne
9260723829 Use prepareQuote to format /me and strip deep nesting 2023-05-23 14:26:06 +02:00
Arne
a9de18e141 Cleanup swipe to reply 2023-05-23 14:20:19 +02:00
Arne
a5c23ba636 Rename menu item quote to reply (Cheogram) 2023-05-23 13:57:36 +02:00
Arne
63421b1986 UI for rich replies (Cheogram) 2023-05-23 13:55:54 +02:00
Stephen Paul Weber
7d45b99c9e Reply to message instead of just quote (Cheogram) 2023-05-23 13:40:28 +02:00
Arne
17de902902 Fix NPE (Cheogram) 2023-05-23 13:25:51 +02:00
Arne
98033b53a8 Sometimes the span isn't actually there? So don't crash (Cheogram) 2023-05-23 13:24:40 +02:00
Arne
8af5e72949 fix some copy (strings) (Cheogram) 2023-05-23 13:19:32 +02:00
Arne
245ea3d5da fix NPE (Cheogram) 2023-05-23 13:17:06 +02:00
Arne
73a3aa289f Allow tor / i2p in sticker pack download 2023-05-23 13:13:12 +02:00
Arne
e7514bf363 Allow getting a set-up client from anywhere (i2p / tor) (Cheogram) 2023-05-23 13:01:25 +02:00
Arne
006301d6cc add_contact was being used other places (Cheogram) 2023-05-23 12:53:26 +02:00
Arne
72092b121a Allow cancel even if webpage is broken (Cheogram) 2023-05-23 12:51:29 +02:00
Arne
766dd86b7f Don't update url unless we have a reason to (Cheogram) 2023-05-23 12:48:11 +02:00
Arne
12fe325683 Easy import of stickers from signal (Cheogram) 2023-05-23 12:45:36 +02:00
Arne
f969f9acf5 Default sticker download offer on first start (Cheogram) 2023-05-23 12:31:18 +02:00
Arne
1d0cdab857 Scan files so they show up under images (Cheogram) 2023-05-23 12:14:14 +02:00
Arne
ba9c63b6e8 Send SIMS with hashes and filename (Cheogram) 2023-05-23 12:10:34 +02:00
Stephen Paul Weber
ee86cdc408 sha-1 is the standard name sha1 is just for bob (Cheogram) 2023-05-23 12:06:42 +02:00
Arne
bca64fbc2c temporary disable showtextformatting at start up 2023-05-23 12:03:50 +02:00
Arne
c14c35e73d Send cid with known URL without uploading (Cheogram) 2023-05-23 12:02:18 +02:00
Arne
031e15469f Fix custom theme settings crash 2023-05-23 11:48:22 +02:00
Arne
d307dd32c2 Option to download default stickers and save their cid and url database (Cheogram) 2023-05-23 11:33:18 +02:00
Arne
95eea6cfef fix background in chats 2023-05-23 04:41:21 +02:00
Arne
7383be6d26 revert commit and fix image/file preview 2023-05-23 04:34:17 +02:00
Arne
f8d3296c41 fix crash on contact details 2023-05-23 04:16:04 +02:00
Stephen Paul Weber
ba0e3af5db Allow blocking cid thumbnails (Cheogram) 2023-05-23 04:03:23 +02:00
Stephen Paul Weber
b56319924b Fix for layout race condition (Cheogram) 2023-05-23 04:01:10 +02:00
Stephen Paul Weber
b8b66d74fa Fix for API less than 24
(cherry picked from commit 684dfe53ee82fc8f48a9c712d9528c4db725d31e)
2023-05-23 04:00:05 +02:00
Stephen Paul Weber
d1c59d5db6 Better save as sticker, also works for older android version (Cheogram) 2023-05-23 03:59:57 +02:00
Arne
d49b008a2b Option to clear blocked media (Cheogram) 2023-05-23 03:52:00 +02:00
Arne
601dbf5d26 Show block avatar option even when cannot see real jid (Cheogram) 2023-05-23 03:46:26 +02:00
Arne
5b79456ae5 Confirm before blocking avatar (Cheogram) 2023-05-23 03:42:59 +02:00
Stephen Paul Weber
4172a9135d Allow blocking any media (Cheogram) 2023-05-23 03:41:18 +02:00
Arne
517cb33927 Allow blocking specific avatars (locally) (Cheogram) 2023-05-23 03:21:00 +02:00
Arne
ebfc2b8ac2 This makes the notification show up (Cheogram) 2023-05-23 03:07:35 +02:00
Arne
bac5ce46ca Don't allow moderating moderated messages or ones without an id (Cheogram) 2023-05-23 03:05:26 +02:00
Arne
acf3364d7f remove debug logs (Cheogram) 2023-05-23 03:03:38 +02:00
Arne
ba0e603095 Hide avatar, nickname, edit icon when moderated (Cheogram) 2023-05-23 03:02:45 +02:00
Arne
6b96c39a54 Store explicit moderation info (Cheogram) 2023-05-23 02:58:56 +02:00
Arne
fa669a5c6c Better link replacement logic (Cheogram) 2023-05-23 02:55:07 +02:00
Arne
faebeba47e Fix for API below 26 (Cheogram) 2023-05-23 02:52:02 +02:00
Arne
14b3419171 Don't show blank messages for moderation in far history (Cheogram) 2023-05-23 02:49:51 +02:00
Arne
291756df74 Support XEP-0425 message moderation (Cheogram) 2023-05-23 02:43:53 +02:00
Stephen Paul Weber
9352d0c611 If a MUC address is entered as a contact, join it (Cheogram) 2023-05-23 02:23:11 +02:00
Stephen Paul Weber
5359debfcc Log and close instead of crash
(cherry picked from commit b89f41dec33ebfaf4f04d1287c22148224fa2214)
2023-05-23 02:00:56 +02:00
Stephen Paul Weber
afe3e51c49 Race condition guard
(cherry picked from commit 064bff58335189de972eb74c92e19313b2b74f3b)
2023-05-23 02:00:50 +02:00
Stephen Paul Weber
2a32fb7c60 Fix NPE
(cherry picked from commit 8e1afd7c4a44f6b28dbbbd53f5b2ae302ea7c769)
2023-05-23 02:00:41 +02:00
Arne
3d173dc7c6 Fixes for deactivated dialler integration at OS level (Cheogram) 2023-05-23 02:00:17 +02:00
Arne
edd4a9a7ae Allow adding the "Go" button even if there is only one fillable field (Cheogram) 2023-05-23 01:58:04 +02:00
Arne
5f0f035e3c Allow any ListView like item to nested scroll uo and down (Cheogram) 2023-05-23 01:55:43 +02:00
Stephen Paul Weber
6140112681 Clear items before adding more
(cherry picked from commit cfa0ab438d269c413375e3add88548678c09ea74)
2023-05-23 01:52:38 +02:00