Commit graph

50 commits

Author SHA1 Message Date
Ensar Sarajčić
857a4f0b93 Implement archive functionality using system API 2023-07-17 16:43:31 +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
Ensar Sarajčić
daf11dc6fd Properly look up participants in MMS group conversations
Application was always picking first participant when tapping on avatars
in conversations. It was also using first participant for MMS notifications.

This stores sender's phone number in the database, so it can be used to look
up correct participant in the list of participants. If matching on number fails,
matching on name is attempted. If both of these fail, it falls back to previous
behavior, which is just picking the first participant.

This may also be connected to #32, but I am not sure, since this should just
be related to behavior when tapping on avatars. Mixing up avatars in the
conversation should be a different issue.

This closes #433, closes #500, closes #384
2023-07-07 10:58:17 +02:00
Tibor Kaputa
73c12d0db1
removing an empty line 2023-06-26 22:48:13 +02:00
AAlier
5169539a88 Add missing code 2023-06-24 04:28:35 +06:00
Naveen
83cdf0f623 Avoid resetting conversation name 2023-02-28 18:58:10 +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
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
aeafc7030d Minor code improvements 2022-06-16 19:23:59 +05:30
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
aa495b4251 allow storing unstored numbers from the conversation screen too 2022-03-25 21:07:54 +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
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
tibbi
e8a53d06c1 make sure the conversation are properly refreshed when open 2021-04-15 11:58:11 +02:00
tibbi
d3494014a6 improving the messages delivery status 2021-01-01 19:00:40 +01:00
tibbi
733428da38 store received messages in hte local db asap 2020-12-21 22:56:10 +01:00
tibbi
6405b7431f work with threadIds as Longs, not Ints 2020-12-21 20:01:57 +01:00
tibbi
f66833e9bd complicate the threading at receiving messages a bit more 2020-11-28 22:47:11 +01:00
tibbi
953d521e47 make sure received messages are stored on the background thread 2020-11-03 19:23:49 +01:00
tibbi
2e0d6a877d improving the unread messages counter badge 2020-07-27 22:37:11 +02:00
tibbi
a85eb77d31 fix #47, mark the whole conversation as read with Mark as Read at notification 2020-06-17 21:45:17 +02:00
tibbi
0db8b202c7 properly add new messages into the local database on receiving 2020-05-30 20:21:27 +02:00
tibbi
b5cd6aafbc improving blocked number checking performance 2020-05-23 17:15:27 +02:00
tibbi
d4e9c22d13 add a Mark As Read notification item 2020-05-13 16:04:28 +02:00
tibbi
6fb8d963a8 store the subscription ID at incoming messages too 2020-05-13 13:44:43 +02:00
tibbi
6db8d2a2d3 fix a glitch at setting the received sms time in the future 2020-05-01 00:12:22 +02:00
tibbi
aea826b57c properly handle multipart longer sms messages 2020-04-19 20:55:48 +02:00
tibbi
cfda56973d adding some extra checks to avoid showing blocked numbers on some places 2020-04-14 10:14:05 +02:00
tibbi
a25982e816 move the received message notification handling in Context extension 2020-04-10 19:00:14 +02:00
tibbi
44a1d85436 properly obtain the sms senders name 2020-04-09 10:06:47 +02:00
tibbi
5b6b5db17b pass only the ThreadId to ThreadActivity, fetch other data 2020-04-06 11:13:47 +02:00
tibbi
e1f1583b17 add handling for storing sent messages 2020-04-05 19:12:02 +02:00
tibbi
420a88c74c creating a helper function for fetching the thread id 2020-04-05 17:38:25 +02:00
tibbi
251eca8823 adding a helper function for refreshing the messages 2020-04-05 15:06:27 +02:00
tibbi
1c1ccb7a4b show the addresses first letter at the SMS notification 2020-04-05 11:58:35 +02:00
tibbi
7f2470567d adding a new icon for the notifications 2020-04-05 10:55:24 +02:00
tibbi
b48f18eaf8 adding the app icon in all colors 2020-04-05 10:29:16 +02:00
tibbi
a3e89719b1 use the BigTextStyle notification style at received SMS 2020-04-04 22:11:23 +02:00
tibbi
1fe2f10d53 show a notification at receiving an SMS 2020-04-04 21:53:58 +02:00
tibbi
29c0f928ca use EventBus for triggering sms list refreshes 2020-04-04 21:23:28 +02:00
tibbi
654359eaea store received SMS in the SMS provider 2020-04-04 20:11:40 +02:00
tibbi
0f4e89c8a9 do not allow using the app, if it isnt the default SMS handler 2020-04-04 16:44:40 +02:00