Commit graph

867 commits

Author SHA1 Message Date
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ć
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
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
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
tibbi
e8d021a662 use nicer effects at long pressing conversations 2023-06-11 21:42:55 +02:00
Agnieszka C
bb61229cef Fixed deleting notification after deleting conversation ( #637) 2023-05-20 08:35:03 +02:00
Tibor Kaputa
dd48fa544e
Merge pull request #651 from yparitcher/history
refresh sms history based on oldest sms loaded, ignoring mms
2023-05-19 22:49:21 +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
Tibor Kaputa
abedc2a18a
Merge pull request #642 from rmullin7286/master
Made ThreadActivity launch in singleTop mode and added onNewIntent.
2023-05-18 17:58:35 +02:00
yparitcher
707d7499e3
better method: limit the total of sms+mms to MESSAGES_LIMIT
this causes the sms and mms to load together for a smoother flow
2023-05-10 20:35:12 -04:00
tibbi
4596ab4475 use the new error string 2023-05-10 22:52:12 +02:00
Tibor Kaputa
055c1c7c08
Merge pull request #621 from Anis-cpu-13/fix-messaging-bug
Fix issue where sms_body was not being handled as an alternative to I…
2023-05-10 22:30:49 +02:00
yparitcher
7b5d32e624
refresh sms history based on oldest sms loaded, ignoring mms
all mms are always loaded, the number of messages only concerns sms, so only reference sms to determine the oldest loaded message

this should load all sms messages when there are mms messages in between

Fixes: #535
2023-05-10 15:37:43 -04:00
tibbi
a54155d358 updating commons 2023-05-07 18:50:55 +02:00
Ryan Mullin
41083ef754 Made ThreadActivity launch in singleTop mode and added onNewIntent. 2023-04-25 18:14:24 -07:00
Anis-cpu-13
b4ea472884 Fix issue where sms_body was not being handled as an alternative to Intent.EXTRA_TEXT when sending SMS messages. Updated the launchThreadActivity function in NewConversationActivity.kt to handle sms_body as a fallback for message text. 2023-03-27 01:31:05 +02:00
Tibor Kaputa
d6f8d58867
Merge pull request #616 from kcotugno/stream-json-decode-on-import
Stream json during import fixes #329
2023-03-25 09:02:56 +01:00
Kevin Cotugno
cdbb16bdc8 Stream json during import fixes #329 2023-03-17 13:32:45 -07:00
Naveen
abb7e66105 Allow sending only-text MMS messages
Fixes regression caused by recent changes in https://github.com/SimpleMobileTools/Simple-SMS-Messenger/pull/589
2023-03-06 14:28:11 +05:30
tibbi
98fc6eb0b4 adding some empty lines 2023-03-04 23:02:51 +01: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
eeb87836e2 Handle temporary threads in conversations details 2023-02-28 19:24:24 +05:30
Naveen
c94b8852cd Avoid resetting conversation name in tmp threads 2023-02-28 19:17:04 +05:30
Naveen
83cdf0f623 Avoid resetting conversation name 2023-02-28 18:58:10 +05:30
Naveen
a27790ee7c Always refresh thread to reflect sending failure 2023-02-28 14:02:53 +05:30
Naveen
49597a8db3 Add some spacing between attachments and text 2023-02-19 15:17:51 +05:30
Naveen
0b33ec877d Remove index decrement when using until 2023-02-19 14:49:29 +05:30
Naveen
751fe359e7 Show error toast for attachments larger than MMS limit 2023-02-19 14:37:41 +05:30
Naveen
c931eb0171 Send MMS attachments separately
If the message contains text, it is sent with the last attachment.
2023-02-19 03:03:51 +05:30
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
tibbi
9a7d56d0e8 adding a crashfix 2023-02-08 10:22:31 +01:00
tibbi
f65a4a9a8c allowing entering Conversation details at single recipient threads too 2023-02-08 10:12:18 +01:00
tibbi
251d885836 renaming a menu item 2023-02-08 10:08:37 +01:00
Tibor Kaputa
98cf201f0a
Merge pull request #566 from Naveen3Singh/fix_progress_logic
Hide progress bar after loading conversations from telephony
2023-02-01 08:36:03 +01:00
Tibor Kaputa
7429a0c9e5
Update MainActivity.kt 2023-02-01 08:35:40 +01:00