Commit graph

79 commits

Author SHA1 Message Date
Naveen Singh
72e5cbac3c
Make conversation screen scrollable
See https://github.com/FossifyOrg/Messages/issues/359
2025-04-01 12:20:43 +05:30
Agnieszka C
f1d9d911d7 Fixed cursor position when opening from background (#349) 2025-03-24 09:17:46 +01:00
Naveen Singh
955c3bf58d
Fix some code style errors 2025-03-24 00:52:26 +05:30
Naveen Singh
948728dba5
End files with new lines 2025-03-24 00:32:39 +05:30
Naveen Singh
8f0cbac572
Minor code improvement 2025-03-23 22:44:01 +05:30
Naveen Singh
6531f9f104
Remove storage permission requirement
It's not necessary for importing/exporting blocked numbers or keywords.

See https://github.com/FossifyOrg/Messages/discussions/309
2025-03-23 20:23:49 +05:30
Naveen Singh
83a7ff0ada
Merge pull request #346 from FossifyOrg/fix_mms_vuln
Limit received MMS message length to 5000
2025-03-22 14:06:26 +05:30
Naveen Singh
74cb8c602c
Merge pull request #345 from FossifyOrg/fix_mms_sender_logic
Apply proper selection when querying MMS sender
2025-03-22 02:13:41 +05:30
Naveen Singh
0f098fc1e1
Fix concurrent modification exception 2025-03-21 02:54:04 +05:30
Naveen Singh
20999d70e5
Limit received MMS message length to 5000
This is to avoid ANRs just in case there are very large text messages in the system (either added on purpose or sent by someone else to trigger ANRs in the user's device)
2025-03-19 09:38:18 +05:30
Naveen Singh
a7c598e47e
Apply proper selection for MMS sender
See https://github.com/FossifyOrg/Messages/issues/344

More info: https://android.googlesource.com/platform/packages/apps/Messaging/+/master/src/com/android/messaging/sms/MmsUtils.java#1673
2025-03-19 06:13:00 +05:30
Naveen Singh
2a9b5b6d85
Merge pull request #322 from tom93/pr/fix-import-binary-mime-type-q
Allow importing binary files on Android 9
2025-03-09 06:33:43 +05:30
Naveen Singh
8fcd792a15
Format some code 2025-03-02 15:48:41 +05:30
Naveen Singh
0a8273f676
Add launchConversationDetails extension 2025-03-02 15:43:46 +05:30
Agnieszka C
3085b51b86 Added conversation details to the conversation list (#336) 2025-03-02 10:30:53 +01:00
Tom Levy
73d736c4cd Allow importing binary files on Android 9
The previous check was off by one version. The workaround needs to be
applied on Android versions up to *and including* Android 9 (Pie), so
it should be applied unless we are on Android >= 10 (Q).
2025-02-14 10:45:49 +00:00
Naveen Singh
ba49803d83
Remove unused import 2025-02-03 11:51:04 +05:30
Naveen Singh
255cacbfd4
Remove unnecessary intent creation 2025-02-03 11:47:35 +05:30
Naveen Singh
23ede234ec
Merge pull request #301 from FossifyOrg/fix_sms_intent_parsing
Restore country code removal
2025-02-02 14:16:17 +05:30
Naveen Singh
5f6ec81269
Access db on background thread
See https://github.com/FossifyOrg/Messages/issues/287
2025-02-01 20:29:19 +05:30
Naveen Singh
a57bd2e6a9
Restore country code removal
See https://github.com/FossifyOrg/Messages/issues/294
2025-02-01 19:35:53 +05:30
Naveen Singh
9d324b4c0a
Fix parsing forwarded text 2025-01-05 11:30:59 +05:30
Naveen Singh
b1d5452459
Clear empty drafts caused by version 1.1.1
See https://github.com/FossifyOrg/Messages/issues/274
2025-01-05 04:12:09 +05:30
Naveen Singh
57518b3ab0
Update comment 2025-01-05 03:39:30 +05:30
Naveen Singh
f661e126df
Use in-app db for drafts
Closes https://github.com/FossifyOrg/Messages/issues/274

Closes https://github.com/FossifyOrg/Messages/issues/225
2025-01-05 03:32:10 +05:30
Naveen Singh
c560581df3
Fix notification header color in black & white theme 2025-01-04 16:34:46 +05:30
Naveen Singh
f0ef2bfe10
Fix short code check!
It was returning true when it should return false

Broke it while trying to fix https://github.com/FossifyOrg/Messages/issues/115
2025-01-04 16:20:29 +05:30
Naveen Singh
b920dbd482
Fix some code style issues 2025-01-04 16:09:45 +05:30
Naveen Singh
68b00e94d9
Minor code improvement 2025-01-04 16:03:26 +05:30
Naveen Singh
2da3ccad82
Don't treat emails as short codes
Closes https://github.com/FossifyOrg/Messages/issues/115
2025-01-04 15:52:01 +05:30
Naveen Singh
d4d914abf4
Minor code improvement 2025-01-04 15:51:44 +05:30
Naveen Singh
cfa96a3a53
Fix deprecation and format code 2025-01-04 03:25:04 +05:30
Naveen Singh
f343085703
Clear drafts instead of deleting them
Closes https://github.com/FossifyOrg/Messages/issues/13
2025-01-04 03:23:59 +05:30
Naveen Singh
4434d187bc
Improve third party SMS/MMS intent parsing
Closes https://github.com/FossifyOrg/Messages/issues/243

Closes https://github.com/FossifyOrg/Messages/issues/217
2025-01-04 03:14:50 +05:30
Naveen Singh
f66aa77831
Show progress indicator when importing/exporting messages
One small step towards https://github.com/FossifyOrg/General-Discussion/issues/120
2025-01-04 01:16:49 +05:30
Naveen Singh
5ed8c0aacd
Remove unused methods and format code 2025-01-04 01:14:37 +05:30
Naveen Singh
7eafa793c0
Move variables to the top 2025-01-03 22:11:41 +05:30
Naveen Singh
47620b7aee
Delete unused method 2025-01-03 21:59:58 +05:30
Naveen Singh
d037bfbe5e
Fix typo 2025-01-03 21:49:12 +05:30
Naveen Singh
df4440750d
Format code 2025-01-03 21:48:48 +05:30
Naveen Singh
997f2f49e3
Improve attachment name parsing
See https://github.com/FossifyOrg/Messages/issues/261
2025-01-03 20:32:56 +05:30
Naveen Singh
294571e116
Catch exceptions caused by empty or malformed SMIL
Closes https://github.com/FossifyOrg/Messages/issues/262
2025-01-03 19:39:07 +05:30
Naveen Singh
545439f353
Add names to call arguments 2025-01-03 19:37:16 +05:30
Naveen Singh
011dc3393e
Merge branch 'master' into pr/import-fix-timestamps 2024-12-27 17:46:11 +05:30
Naveen Singh
43c30eda08
Remove unnecessary check 2024-12-27 17:30:27 +05:30
Tom Levy
3ad36c0021 Fix conversation dates on import
When we insert a message, Android's Telephony provider sets the
conversation date to the current time rather than the time of the
message that was inserted.[1] This commit implements a workaround that
fixes the conversation timestamps.

Fixes #146, #42.

[1] https://android.googlesource.com/platform/packages/providers/TelephonyProvider/+/android14-release/src/com/android/providers/telephony/MmsSmsDatabaseHelper.java#134
2024-12-27 11:58:41 +00:00
Tom Levy
bfd5450435 Add bulk version of updateLastConversationMessage()
In situations where we want to update multiple conversations (e.g.
during import), we can make it faster by only calling
contentResolver.delete() once.

(We still make separate calls to getConversations() because it doesn't
support multiple IDs, and likewise insertOrUpdateConversation()
doesn't support bulk insert.)
2024-12-27 11:58:41 +00:00
Naveen Singh
787f4cb2e1
Clear typed messages for short codes 2024-12-27 16:39:53 +05:30
Naveen Singh
be553f0b10
Use queryCursor extension for deleting drafts 2024-12-27 16:38:55 +05:30
Naveen Singh
6fba0bfdd8
Clear drafts before saving new one
This may resolve https://github.com/FossifyOrg/Messages/issues/13
2024-12-27 15:35:19 +05:30