Commit graph

100 commits

Author SHA1 Message Date
Naveen
83cdf0f623 Avoid resetting conversation name 2023-02-28 18:58:10 +05:30
Naveen
b61782bc7b Avoid oneliner 2023-01-10 17:25:25 +05:30
Naveen
ed11a99e59 Show error toast when sending MMS fails 2023-01-10 17:14:51 +05:30
Naveen
61c1e7b6b5 Check result code when updating MMS status
This fixes the issue where attachments are marked sent even when they aren't
2023-01-10 17:01:38 +05:30
Naveen
0095352713 Set PendingIntent when sending MMS 2023-01-10 16:54:55 +05:30
Naveen
a48a160632 Move abstract receiver to receivers package (for now) 2023-01-10 14:46:35 +05:30
Naveen
71e5e06c60 Mark sms sent status failed when any exceptions occur 2023-01-06 19:13:09 +05:30
Naveen
7665415b87 Remove no longer required logic 2023-01-06 13:41:39 +05:30
Naveen
91e562ab32 Always update SMS sent status
as there's no point in handling error codes if we are not queuing the SMS for retry
2023-01-06 00:19:36 +05:30
Naveen
08ee7ac700 Improve SMS delivery report handling
On some phones, SMS message is marked delivered even though it wasn't really delivered, this should fix such issues. Based on AOSP and Signal app
2023-01-05 23:51:29 +05:30
Naveen
1f36738be0 Rewrite, move SMS related code into the app 2023-01-03 15:43:14 +05:30
Naveen
f1f27eeb9d Update message in local db when using inline replies 2022-12-08 02:06:31 +05:30
Naveen
0523d93243 Only show failure notification when in background 2022-12-08 01:40:34 +05:30
Naveen
6e7dbb9056 Properly update sent message type 2022-12-07 22:39:04 +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
786f788ba7 Save sender name, photo when receiving a message 2022-11-25 23:22:38 +05:30
Naveen
ca1ad0043b Minor messaging code improvement 2022-11-18 01:01:10 +05:30
Naveen
e87c8eeff7 Refresh messages when an MMS is received 2022-11-07 20:47:39 +05:30
Naveen
cd2c94ccee Workaround attachment filename issue 2022-11-05 00:21:59 +05:30
tibbi
5f728c9321 minor fixes and updates here and there 2022-10-26 18:36:44 +02:00
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
Tibor Kaputa
b5c6ec5952
Merge pull request #431 from Naveen3Singh/sim_selection
Respect default SMS SIM setting
2022-09-20 09:57:55 +02:00
Naveen
a4bd3364c6 Use subscriptionManagerCompat() everywhere 2022-09-18 22:57:28 +05:30
Naveen
cb9e91ce08 Add the ability to block numbers by pattern 2022-09-17 23:52:06 +05:30
tibbi
36a09ac8cb lets always use the system milliseconds at setting received message time
it.timestampMillis seems to ignore seconds, which can mix up messages
2022-08-24 22:13:24 +02:00
Naveen
cd8b40b3b6 Add safe call operator 2022-08-21 23:48:48 +05:30
Naveen
aeafc7030d Minor code improvements 2022-06-16 19:23:59 +05:30
Pavel Poley
550504a6c2 Merge remote-tracking branch 'origin/master' into fix/sending-glitch 2022-05-31 12:22:20 +03:00
Pavel Poley
2d675ac8be fix sending glitch shown at opening a conversation 2022-05-31 12:12:24 +03:00
Tibor Kaputa
137f0db6f2
fix showing messages from unstored contacts 2022-05-27 18:47:16 +02:00
Mysochenko Yuriy
e1078d4379 update to the latest commons version 2022-05-27 18:12:33 +03:00
Mysochenko Yuriy
f92e19e145 add an option to block messages from unknown numbers 2022-05-26 19:11:17 +03:00
tibbi
f41e1aa18e fix #316, use proper SIM at replying via the top notification 2022-05-23 20:14:51 +02:00
darthpaul
72cbb342a6 handle sending group SMS
- in Context.getMessages, split the sender number by spaces " " to get each contact.
- apply update in the android-smsmms lib - do not pass threadId in Transaction.sendNewMessage
2022-05-01 03:33:47 +01:00
tibbi
fa83697473 lets make those pendingintents mutable 2022-04-12 14:38:29 +02:00
tibbi
bf2f4887ca add the PendingIntent.FLAG_IMMUTABLE flag to PendingIntents 2022-04-12 14:35:02 +02:00
tibbi
45874d13d4 updating commons and target SDK to 31 2022-04-12 09:45:18 +02:00
tibbi
aa495b4251 allow storing unstored numbers from the conversation screen too 2022-03-25 21:07:54 +01:00
tibbi
9052c5183d apply some configs at sending message from anywhere 2022-03-07 10:19:40 +01:00
tibbi
cc04594d31 updating commons 2022-02-07 11:45:59 +01:00
tibbi
591f473a1f updating commons with PhoneNumber containing multiple fields 2022-02-06 22:44:20 +01:00
Agnieszka C
5751eabc16 Added contact photo to notification 2022-01-12 18:23:18 +01:00
tibbi
928246eaea fix #206, solving a glitch with number being shown instead of name 2021-12-25 18:37:47 +01:00
tibbi
5f11714e6f catch exceptions thrown at getting unread conversations 2021-11-13 09:08:55 +01:00
Agnieszka C
d2d291069c Fixed marking as read/unread not refreshing list 2021-09-14 19:03:04 +02:00
Agnieszka C
b212aa49b3 Added removing diacritics (#29) 2021-09-06 10:12:51 +02:00
Paul Akhamiogu
46f71c994f Show 2 checks when sms is delivered
- differentiate between sent sms and delivered sms by updating the SmsStatusSentReceiver which updates the type to Telephony.Sms.MESSAGE_TYPE_SENT or Telephony.Sms.MESSAGE_TYPE_FAILED depending on the outcome.
- rename ThreadSuccess to ThreadSent and add a boolean field for the delivery status
- SmsStatusSentReceiver updates the status of the message to Telephony.Sms.STATUS_COMPLETE.
- accommodate for the need to keep track of the status by adding Int field status to the Message class,
- add appropriate database migrations (3 to 4) for the new status field.
- add status to the query for sms in extension function Context.getMessages and Context.getMMS
- add extension function Context.updateMessageStatus to update the status of a message in the database
2021-08-25 16:57:07 +01:00
tibbi
de54a88b2d catching some exceptions 2021-05-23 17:01:59 +02:00