Commit graph

123 commits

Author SHA1 Message Date
Ensar Sarajčić
7dbd6c5d9f Add proper strings for archive operations 2023-07-12 10:37:20 +02:00
Ensar Sarajčić
47861f605d Add support for archiving conversations
Archiving messages currently acts like recycle bin in
Simple Gallery, meaning that after 30 days, conversations
will be deleted permanently. Any updates to the conversation
(new messages) removes it from archive.

This closes #177
2023-07-11 16:52:47 +02:00
Alier
a21662baef Update string translation 2023-06-26 16:27:23 +06:00
Alier
b076da3840 Add Delete Action Button to Sms message 2023-06-24 04:09:35 +06:00
tibbi
77768c66e0 fix #44, load less messages at conversations by default to speed it up 2023-06-21 12:22:11 +02:00
Tibor Kaputa
e475069c42
autoformatting code 2023-05-19 22:47:21 +02:00
Kevin Cotugno
da117ecca4 Fix import for partial exports
The previous implementation assumed that each JSON object would have an
"SMS" key and a "MMS" key, and in that order. This caused an exception
when it tried to read the next NAME token because the next token is
actually the closing bracket of the object. This commit fixes this issue
by checking that the next token is actually a NAME. If it is, we consume
the token and handle it according to its value, which may be either
"sms" or "mms". If it's neither of those, we skip it.

Fixes #646
2023-05-19 07:07:07 -07:00
Kevin Cotugno
cdbb16bdc8 Stream json during import fixes #329 2023-03-17 13:32:45 -07:00
Tibor Kaputa
758d538e64
Merge pull request #589 from Naveen3Singh/improve_compressor
Improve image compression
2023-03-04 20:34:26 +01:00
tibbi
9c5978f50a rely on ContactsHelper from Simple Commons 2023-03-04 09:47:42 +01:00
Naveen
83ba8ee3f3 Improve image compression
- Approximate quality and compress in one go instead of iterating.
- If compressing doesn't help achieve the required file size limit, keep reducing resolution until the file size is smaller than the max limit.
- Convert PNGs to JPEG for lossy compression when max MMS limit is less than 1MB. This helps avoid tiny pixelated PNG images.
- Removed the abstraction (didn't think it was necessary)
2023-02-16 03:46:41 +05:30
Naveen
2d3650deb4 Lower limit to 75 for quick loading 2023-01-15 09:12:07 +05:30
Naveen
e98351c146 Increase first load limit to 100 2023-01-15 08:41:07 +05:30
Naveen
35a98d4823 Disable replying to invalid short codes via notification 2023-01-07 17:22:32 +05:30
Naveen
1f36738be0 Rewrite, move SMS related code into the app 2023-01-03 15:43:14 +05:30
tibbi
db6ddceb73 updating commons and min SDK to 23 2023-01-01 21:24:41 +01:00
Naveen
35e9141888 Use a separate notification id for failure notifications
This way failure notifications won't overwrite the existing chat notifications (if there are any) as they also use thread id as notification id
2022-12-08 01:42:43 +05:30
Naveen
860e6c255b Minor code improvement 2022-12-04 23:23:16 +05:30
Naveen
453d879c82 Minor readability improvement 2022-12-04 00:57:14 +05:30
Naveen
0ab85419af Improve and organise notification related code
Improvements related to the "Mark as read" button but it's not completely fixed yet. There's still a minor issue on android 13 devices

### Changes:
 - Move notification related code to a separate helper
 - Update notification instead of cancelling when using inline replies
 - Disable sound on inline replies
 - Reuse existing transaction api extensions for sending inline replies
2022-12-04 00:49:41 +05:30
Naveen
417a37bbb4 Move blocking stuff to background thread 2022-11-18 01:15:46 +05:30
Naveen
ca1ad0043b Minor messaging code improvement 2022-11-18 01:01:10 +05:30
Naveen
d8dadd1f55 Use DiffUtil with thread recyclerview
Also added a progress indicator at the top while fetching older messages
2022-11-17 02:25:36 +05:30
Naveen
c5034a64d5 Don't fetch file size in thread list 2022-11-16 15:54:25 +05:30
tibbi
a65916c54e catch and show exceptions thrown at sending a message 2022-11-13 20:31:03 +01:00
Tibor Kaputa
56ea66634d
Merge branch 'master' into enter-to-send 2022-11-10 16:41:07 +01:00
Naveen
b4c5648ddc Properly handle attachment picker visibility 2022-11-08 02:13:24 +05:30
elena
407538e497 Add option to send on enter pressed 2022-11-07 18:41:51 +00:00
Naveen
1e67cd0fdf Use 'application/txt' when sending text files 2022-11-07 15:35:57 +05:30
Naveen
40a77118bf Add "Choose video" button 2022-11-07 03:24:53 +05:30
Naveen
b6407dc49b Use lookup key to load contacts 2022-11-06 21:00:35 +05:30
Tibor Kaputa
3a1b749a58
fixing a param name 2022-11-06 10:44:49 +01:00
Tibor Kaputa
6bf9d6399e
fixing some spacing 2022-11-06 10:32:52 +01:00
Naveen
cd2c94ccee Workaround attachment filename issue 2022-11-05 00:21:59 +05:30
Naveen
61a57aa2b5 Show icon for common mime types 2022-11-05 00:20:04 +05:30
Naveen
b6012f6e2b Workaround some potential exceptions 2022-11-03 23:49:55 +05:30
Naveen
09956f809d Properly parse attachment file names 2022-11-03 23:40:47 +05:30
Naveen
ecdbc9036a Extract all properties when adding contact attachment 2022-11-03 00:01:52 +05:30
Naveen
54f7c5980b Move preview helpers to one place 2022-11-02 20:32:51 +05:30
Naveen
23643d3198 Add support for sending all types of files 2022-11-02 18:03:35 +05:30
Naveen
d6f71619cf Add options to edit, delete, and send the message now 2022-10-04 01:10:20 +05:30
Naveen
ee8130c767 Handle conversations with scheduled messages only 2022-09-28 02:05:06 +05:30
Naveen
2ff0880cb5 Handle sending scheduled messages 2022-09-27 16:08:45 +05:30
Naveen
7624174cad Add schedule send message creation ui
Move android-smsmms logic into a separate file
2022-09-26 03:02:07 +05:30
Naveen
56ec2c5442 Also add additional (middle) names 2022-09-01 00:11:07 +05:30
Naveen
6a0553bf5f Also add name prefix and suffix 2022-08-31 23:57:01 +05:30
Naveen
8dc4687328 Use structured name when formatted name is empty 2022-08-31 17:34:51 +05:30
Naveen
f07abeb54c Add vCard attachment preview 2022-08-29 03:19:50 +05:30
tibbi
0031c7bb1d delete all messages to reset the db 2022-06-26 12:59:44 +02:00
tibbi
42b3c7b475 set sendGroupMessageMMS to false by default 2022-06-12 09:29:35 +02:00