1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-06 15:36:12 +00:00

136 Commits

Author SHA1 Message Date
Loïc Blot
7abea7cc9b Fix the test case 2018-12-10 16:27:49 +01:00
Loïc Blot
fdcb6b4f14 Add a test API to push messages to current user context
This permits to test easily some usecases.
It should be disabled at release.
2018-12-10 16:23:03 +01:00
Loïc Blot
e6a2214bc9 Fix CSP issue with vue.js 2018-12-10 16:14:53 +01:00
Loic Blot
267872b396 Add query + routes to drop all user messages 2018-09-08 11:40:44 +02:00
Loic Blot
5bbb1292c8 Fix wrong message count when checking new messages
Regression was introduced in commit: 580e4415e24f3a7496f930aac9a2386148a56ebf
2018-09-08 00:04:49 +02:00
Greg Ross
2600b743d1 Fix date used to retrieve new messages (#265)
Using the conversation read date to check for new messages will retrieve the same message multiple times if the last read date is older than when the new message arrives.  Instead us the last message we have retrieved as the date to check for new messages from.
2018-07-20 22:47:53 +02:00
Greg Ross
580e4415e2 Fix the unread state (#251)
The checkNewMessages method was using an old regex phone number formatter and not returning the phone numbers in a formated fashion back to the client side.
2018-07-02 08:33:13 +02:00
Greg Ross
6868c1fa85 Fix deleting conversations without a contact (#250)
* Fix deleting converstatoins with a contact

If a conversation does not have a contact, the delete function will fail as only the formatted phone number is passed in and the raw sms phone number is needed to execute the delete.
2018-07-01 19:29:29 +02:00
Loic Blot
7d6e81f0ff
Simplify fetchMessages response code 2018-02-10 11:16:53 +01:00
Loic Blot
9a6d6907cf
apicontroller.php: Return error 400 when messages are not accepted on push 2017-12-28 16:56:31 +01:00
Kai Schröer
7dd75ea74a Corrected missing Nc branding (#212) 2017-12-28 16:18:36 +01:00
Loic Blot
f7da068505 Validate smsCount and smsDatas field 2017-08-23 22:26:42 +02:00
Loic Blot
5a653a0ac4 Fix an index problem on contact UIDs
This fixes issue #178
2017-05-06 08:25:40 +02:00
Loic Blot
9d8702d3bb Rename application to 'Phone Sync'
Also update copyright years on modified files
This fixes #132
2017-01-03 12:54:38 +01:00
John Molakvoæ
8296cdca78 Set contact colours on uids (#152)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2017-01-03 11:22:05 +01:00
Loic Blot
065ab9bdee Code cleanup & defer fetchMessagesToSend 2016-12-07 00:11:57 +01:00
Loic Blot
467565d41b Return current start as last_id if last_id = 0 2016-12-07 00:10:06 +01:00
Loic Blot
7fda438397 Return last_id = 0 when there is no new messages 2016-12-06 23:59:41 +01:00
Loic Blot
8d335d449e Add last_id field to fetchmessage functions 2016-12-06 23:55:36 +01:00
Loic Blot
26df3a53a4 Conversation Mapper addition + migration to proper scheme 2016-11-11 17:11:05 +01:00
Loic Blot
b84ff1088f Try to cleanup check_new_messages 2016-09-22 21:52:49 +02:00
Loic Blot
debf173673 Little regexp fix 2016-09-22 21:40:49 +02:00
Loic Blot
60bd54a12a Add settings to change contact list ordering by label/lastmsg and reverse/sort 2016-09-19 23:24:05 +02:00
Loic Blot
fb952e00ef Doxygen comment fix 2016-07-21 23:49:20 +02:00
Loic Blot
78eae0600c Add a new call to get the current message count for a user 2016-07-21 23:32:01 +02:00
Loic Blot
a5d0869dd7 ocsmsapp.php cleanup & fix 2016-05-19 18:51:41 +02:00
Loic Blot
729b48a846 Make owncloud 8.1 as the minimum default + cleanups 2016-05-19 18:27:48 +02:00
Loic Blot
f05d5562b8 Code cleanup + some PHPDoc 2016-05-19 08:03:27 +02:00
Loic Blot
1b2a171b89 APIv2 improvements
* prepare a table for messaging sending queue
* drop retrieveAllIdsWithStatus and related API call (unused and dropped from Android app devel version)
* reorganise api controller
2016-05-12 23:18:25 +02:00
Loic Blot
d6818be568 Prepare api v2 calls to retrieve messages from the server 2016-05-12 23:05:58 +02:00
Loic Blot
6b68ccc2ac Fix dead code reported by @enoch85
This fixes issue #109
2016-04-08 10:40:23 +02:00
Loic Blot
3d71229767 v1.6.2: Fix owncloud 9 contact app which break our frontend 2016-03-08 22:51:00 +01:00
Loic Blot
74928c8e64 Permit to disable notifications from app settings directly
This fixes issue #89
2016-01-30 23:23:27 +01:00
Loic Blot
4827856fe2 Move settings from smscontroller to dedicated controller 2016-01-30 23:00:05 +01:00
Loic Blot
ccb13d3c31 Update copyright notice 2016-01-30 22:54:12 +01:00
Loic Blot
7fed10a26c Message limit & other improvements
* Implement message limit permitting to limit number of message shown when loading a conversation
* Reformat message date properly using angular JS instead of our own date parser
* replace /get/country call with /get/settings to retrieve all settings

This fixes issue #90
2016-01-30 22:47:34 +01:00
Loic Blot
13d5e9ff26 Fix messages/conversation removal sync with contact list and also add atomic delete for messages 2015-06-25 22:00:09 +00:00
Loic Blot
d8ecc06314 Add basic route , method and icon for removing single message 2015-06-25 18:17:59 +00:00
Loic Blot
d8a776bea9 remove messages is now okay 2015-06-24 06:48:06 +00:00
Loic Blot
76b0ae3912 smscontroller::removeConversation link with smsmapper::removeMessagesForPhoneNumber. We need to drop messages now 2015-06-24 06:40:03 +00:00
Loic Blot
4852fa3675 smscontroller: Remove whitespaces 2015-06-24 06:37:03 +00:00
Loic Blot
b67802a646 Prepare deleteConversation handler and remove unreachable code in getConversation 2015-06-24 06:35:47 +00:00
Loic Blot
3105eeb776 Prepare conversation deletion in PHP code too 2015-06-23 20:56:15 +00:00
Loic BLOT (@UXP)
0fcaad6d31 Implement Android APIv2 get/phones/smsnumber call 2015-04-10 13:21:56 +02:00
Loic Blot
49b6442362 Separate ContactCache from Application 2015-04-08 13:38:29 +00:00
Loic Blot
040185cc21 Split smscontroller into smscontroller and apicontroller. One for webapp, one for API 2015-04-08 13:07:22 +00:00
Loic Blot
9fbeddfa9b use a proper URLGenerator in smscontroller 2015-03-18 09:48:45 +00:00
Loic Blot
77a9e9cccf Load the country settings at app load 2015-02-16 13:18:48 +00:00
Loic Blot
a0c820ab82 Fix unchecked variable in controller when getting photos
* Also Typo fixes on dbmappers
2015-01-18 16:05:16 +00:00
Loic Blot
84db79a300 Fix message countries, this fix message count and conversations 2015-01-09 19:17:12 +00:00