Commit graph

902 commits

Author SHA1 Message Date
Ensar Sarajčić
b29d664dc4 Merge branch 'master' into feature/451-recycle-bin 2023-07-20 14:12:20 +02:00
tibbi
fd65d26f8f updating commons and room 2023-07-19 16:52:20 +02:00
Tibor Kaputa
0c5242df2d
Merge pull request #698 from esensar/feature/177-conversations-archive
Implement archive feature for conversations using system API
2023-07-19 16:40:16 +02:00
Ensar Sarajčić
e86e089dc5 Move thread handling to unarchiveConversation method 2023-07-19 15:31:02 +02:00
Tibor Kaputa
9208eedf6b
adding an empty line 2023-07-19 14:52:51 +02:00
Ensar Sarajčić
e07fbe40a6 Add confirmation for archiving conversations 2023-07-19 10:11:52 +02:00
Ensar Sarajčić
b9b85ea6a7 Remove options menu on ArchivedConversationsActivity when there are no conversations 2023-07-19 10:07:33 +02:00
Wilson
f6b5bbf455 add asking for Exact alarm permission before scheduling a message above Android API S 2023-07-18 16:21:18 -04:00
Ensar Sarajčić
b0141fe93d Add recycle bin list similar to main conversations list 2023-07-18 15:19:30 +02:00
Ensar Sarajčić
d560720ac3 Fix index creation in the migration 2023-07-18 11:45:47 +02:00
Ensar Sarajčić
555b6ebea3 Add support for recycle bin for messages
This adds support for moving messages to recycle bin instead of
deleting them right away. The feature is not active by default.

This closes #451
2023-07-18 11:34:25 +02:00
Ensar Sarajčić
857a4f0b93 Implement archive functionality using system API 2023-07-17 16:43:31 +02:00
Ensar Sarajčić
222b96e8c5 Remove ApnUtils usage in the app
Using ApnUtils causes crash on newer Android versions (https://github.com/SimpleMobileTools/Simple-SMS-Messenger/pull/683#issuecomment-1637036718)
This reverts this part of changes from https://github.com/SimpleMobileTools/Simple-SMS-Messenger/pull/687, since other
changes have fixed the issue. This part is not as important (required to send reception ACK to MMSC, which is apparently not needed for all carriers)
2023-07-16 16:25:29 +02:00
Tibor Kaputa
1995da2916
Merge pull request #685 from esensar/feature/519-xml-import
Add support for importing XML exports
2023-07-15 18:41:26 +02:00
Ensar Sarajčić
c79242f571 Rename JSON_FILE_EXT to JSON_FILE_EXTENSION 2023-07-15 16:33:21 +02:00
Ensar Sarajčić
a35edce84a Add support for .txt files for importing 2023-07-15 16:32:33 +02:00
Ensar Sarajčić
a6b97698bf Update mime type and file extension constants for clarity 2023-07-15 16:24:32 +02:00
Ensar Sarajčić
0ad178fddb Rename JSON import constants to better reflect contents 2023-07-15 13:59:58 +02:00
tibbi
17f1bf62b1 removing a redundant type definition 2023-07-14 10:00:06 +02:00
Tibor Kaputa
eb35bf3761
Merge pull request #687 from esensar/fix/duplicate-mms
Ensure that MMS reception ACK is sent to prevent duplicate MMS
2023-07-14 09:59:40 +02:00
Ensar Sarajčić
4d13fa1079 Disable archive by default 2023-07-13 16:38:09 +02:00
Ensar Sarajčić
1b7874446b Add index to db migration for archived_conversations 2023-07-13 13:52:54 +02:00
Ensar Sarajčić
c51dc0b935 Fix archived_conversations creation migration 2023-07-13 10:33:02 +02:00
Ensar Sarajčić
ab898bfcbe Update android-smsmms for cleaner MmsReceiver 2023-07-12 18:05:15 +02:00
Ensar Sarajčić
d97a6f6a5f Ensure that MMS reception ACK is sent to prevent duplicate MMS
This implements the getMmscInfoForReceptionAck method
in MmsReceiver which is according to android-smsmms
library required for some carriers, since otherwise
MMS would be duplicated. Unfortunately,
accessing MMSC information is more restricted with
each version of Android and this implementation relies
on system database on older versions and uses APN database
included with android-smsmms for newer versions, which will
work only on the default SIM card.
2023-07-12 17:45:24 +02:00
Ensar Sarajčić
0e2dd357d1 Fix export for LOCKED property for SMS 2023-07-12 12:15:30 +02:00
Ensar Sarajčić
e825e44f54 Add support for importing XML exports
This covers importing from Signal and Silence applications export

This closes #519
2023-07-12 12:13:59 +02:00
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
Tibor Kaputa
7ca11c8427
Merge pull request #682 from esensar/feature/19-message-details
Add message details menu button
2023-07-11 15:25:10 +02:00
Ensar Sarajčić
3adfdd401e Update dialog to reuse properties dialog from file manager 2023-07-11 11:02:55 +02:00
Ensar Sarajčić
6fef121599 Fix formatting of senders and receivers 2023-07-11 09:55:57 +02:00
Ensar Sarajčić
a5d6e7724c Reduce displayed data in message details dialog 2023-07-11 09:49:40 +02:00
Ensar Sarajčić
daea2d2e5d Remove unused address and subject from message filter in SmsReceiver 2023-07-10 17:00:32 +02:00
Ensar Sarajčić
c1b29646d3 Show SIM in details only if multiple are present 2023-07-10 16:59:36 +02:00
Ensar Sarajčić
45416c07bd Split getReceiverOrSenderPhoneNumbers in MessageDetailsDialog in multiple lines 2023-07-10 16:51:37 +02:00
Ensar Sarajčić
28a19a09ce Use string format instead of concatenation in MessageDetailsDialog 2023-07-10 16:50:17 +02:00
Ensar Sarajčić
e4269c8356 Remove needless extra empty line in ThreadAdapter 2023-07-10 16:47:50 +02:00
Ensar Sarajčić
bdd506c96e Add message details menu button
Adds a "Properties" menu button in conversation, when one message
is selected, which displays details about the message:
- Type (SMS or MMS)
- Sender phone number (or receiver if it is a sent message)
- Used SIM
- Date sent at
- Date received at (if it is an incoming message)

This closes #19
2023-07-10 16:43:07 +02:00
Ensar Sarajčić
674a467694 Add support for blocking keywords for incoming messages
This adds support for filtering incoming messages based on
message body by checking if it contains any of the blocked keywords
(case insensitive). Regex and patterns are not supported at the moment.

NOTE: This does not currently support MMS, only SMS.

This closes #33
2023-07-10 14:11:41 +02:00
Wilson
e3bf8541df update last conversation message after replying from notification.
#ISSUE-675
2023-07-07 15:13:23 -04: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
Ensar Sarajčić
9ff6c3cbb6 Properly load threads on configuration changes 2023-06-30 10:56:07 +02:00
Ensar Sarajčić
8675de70c2 Handle app locking for threads too 2023-06-30 10:55:30 +02:00
Ensar Sarajčić
ae2e480876 Prevent loading messages before app is unlocked 2023-06-30 10:41:01 +02:00
Ensar Sarajčić
ce76573614 Adjust settings section label color properly 2023-06-30 10:25:45 +02:00
Ensar Sarajčić
143aaece4b Add password protection feature to the app
This closes #446
2023-06-30 09:29:36 +02:00
Tibor Kaputa
73c12d0db1
removing an empty line 2023-06-26 22:48:13 +02:00
Alier
a21662baef Update string translation 2023-06-26 16:27:23 +06:00
AAlier
5169539a88 Add missing code 2023-06-24 04:28:35 +06:00