Commit graph

366 commits

Author SHA1 Message Date
ylecollen
7a77e28b92 Fix a compilation warnings 2015-01-19 17:33:23 +01:00
ylecollen
5c3b26e3a3 Should fix SYIOS-56 : add cache size handling in settings 2015-01-19 16:53:29 +01:00
ylecollen
1c388b44c2 1 - the uploads are cancellable
2 - delete a room also cancelled epnding uploads/downloads
2015-01-19 15:30:45 +01:00
ylecollen
5d2e3862bf --> The media folder has a new dirtree : each media are stored in
1 - its related room folder
2 - or the thumbnails folder

--> the medias downloads/uploads are cancelled when the mediaManager cache is cleared.
2015-01-19 14:33:57 +01:00
ylecollen
ed4dc310aa Add the max cache size slider in the settings page.
The value is stored but not yet used by the media manager.
2015-01-19 08:58:45 +01:00
giomfo
e7d58c72f6 Remove a useless refresh on messages display 2015-01-16 18:23:21 +01:00
giomfo
e71e6cf792 Fix regression introduced since multithreading
+ Refactor messages handling
2015-01-16 16:39:58 +01:00
David Baker
84237cccda Send the device preferred language. 2015-01-16 11:25:35 +00:00
David Baker
30c6b22beb D'oh, semicolons. 2015-01-16 11:25:19 +00:00
David Baker
bda7c9211e Merge branch 'develop' into apns 2015-01-16 10:48:31 +00:00
David Baker
4e2e6b2ded Add Localizable.strings with loc-keys for APNS. 2015-01-16 10:47:25 +00:00
giomfo
94ed811b9e Move an Action in Actions section 2015-01-16 11:40:38 +01:00
giomfo
20d69b0ee5 FixRegression: typing badge was stretched 2015-01-16 11:27:01 +01:00
manuroe
7aed9a67e1 Console: Fixed UITextView creation on non UI thread 2015-01-16 11:07:25 +01:00
ylecollen
0c0c0fd880 The chat history used to scroll to bottom with the device orientation but it triggered unexpected behaviours in some cases. 2015-01-16 10:50:15 +01:00
giomfo
5320650381 Fix App freeze: we add multithreading to handle received events and back pagination (This relieves the main thread).
SYIOS-57 - Back pagination does not work well for self chat
SYIOS-54 - Matrix Console app slightly freezes when receiving a message
2015-01-16 10:42:36 +01:00
ylecollen
5cfab525da -> Add ConsoleTools::fileExtensionFromContentType
-> Update cachePathForMediaURL with this new method
2015-01-16 09:54:37 +01:00
ylecollen
ec9ff719b5 ConsoleTools update
-> move folderSize to it
-> add listFiles:timeSorted:largeFilesFirst
2015-01-16 09:01:59 +01:00
ylecollen
69904e3474 The chat history used to scroll to the bottom when the keybaord was dismissed.
It triggered weird jump effects.
2015-01-16 08:00:00 +01:00
David Baker
05c5c16b30 Merge branch 'develop' into apns 2015-01-15 17:05:20 +00:00
ylecollen
0242170d86 Useless variable 2015-01-15 17:17:25 +01:00
ylecollen
2bec17f0f7 Remove dead code 2015-01-15 17:13:36 +01:00
ylecollen
b7aebbbf57 Missing project update 2015-01-15 16:23:00 +01:00
ylecollen
7c5ad70897 The textInput used to flicker on IOS 8 when its content size was greater than its frame. 2015-01-15 16:18:12 +01:00
giomfo
380872b2ac BugFix SYIOS-57 - Back pagination does not work well for self chat 2015-01-15 13:17:00 +01:00
giomfo
d1dbc12b2f BugFix SYIOS-45 - Need to check the thumbnail params requested by iOS
BugFix SYIOS-55 - High resolution avatars create memory pressure
2015-01-14 18:30:00 +01:00
ylecollen
a73d46f82e Fix SYSIOS-53 - multilines text input that expands as you type mutiplines would be nice 2015-01-14 18:15:12 +01:00
ylecollen
917f463448 fix many Multilines textInput issues
-> the typing notifications were sent while rotating the screen
-> The iphone 5/4 displays was not properly managed
-> improve the messages list visible area while playing with the new txt input (max height)
-> simply the code
2015-01-14 17:51:53 +01:00
manuroe
ee96c9963e Podfile.lock has been updated due to new sdk version and new dependency 2015-01-14 17:12:15 +01:00
ylecollen
0552d6df93 First implementation of multiLines textInput (SYIOS-53). 2015-01-14 15:17:20 +01:00
giomfo
070af1a85c typing notification: hide typing badge for the current user in room members list 2015-01-14 15:01:10 +01:00
giomfo
90ad72475e Feature SYIOS-25 - Console: display app version in settings 2015-01-14 14:22:07 +01:00
giomfo
793be6c8aa BugFix SYIOS-50: When you post a multiline message, the bubble vertical spacing gets confused. 2015-01-14 14:05:45 +01:00
manuroe
6f622b07c4 Prepare 0.2.1 release 2015-01-14 13:26:49 +01:00
manuroe
fbb60ee651 Do not embed external codes in the project. CocoaPods is our friend for that. 2015-01-14 11:52:51 +01:00
giomfo
9f4ee183c4 BugFix: loading wheel stuck on room when user opens the room during initial sync. 2015-01-14 10:16:17 +01:00
giomfo
35a643059b BugFix SYIOS-30 - iOS needs typing notifs like the web client
display typing bagde in members list too.
2015-01-14 09:42:01 +01:00
ylecollen
0fa3130ee2 - Add an "External" folder to manage other open sources component
- GrowingTextView is the first component
2015-01-14 09:32:30 +01:00
ylecollen
2ed7690c62 Add GrowingTextView to the project 2015-01-14 09:29:52 +01:00
giomfo
686000e9fc SYIOS-30 - iOS needs typing notifs like the web client
We highlight here the avatar of the user who's typing
2015-01-13 18:32:52 +01:00
ylecollen
be96ed57ef -> an unsent video can be played
-> Unsent media messages can be resent (whenever it failed)
-> the upload progress was not always dismissed when a network error was triggered
2015-01-13 17:53:31 +01:00
manuroe
d2cb17f3d2 MatrixConsole: use SDK to resolce mxc:// 2015-01-13 17:39:56 +01:00
manuroe
87c5c80e91 CustomImageView: Fixed crash when the image URL is not valid 2015-01-13 17:11:15 +01:00
giomfo
8ab7d8c869 Typing notification: update typing notification sending 2015-01-13 16:07:34 +01:00
David Baker
5ac50879d4 Omit platform if it's production to be a bit terser. 2015-01-13 14:34:17 +00:00
David Baker
53e80c5706 Merge branch 'develop' into apns 2015-01-13 14:28:47 +00:00
ylecollen
4965056d04 An uploaded video is stored in the media cache to avoid downloading it later again 2015-01-13 13:22:20 +01:00
ylecollen
2971eb0fd9 Do not remove anymore the download rate during a download (it flickers too much). 2015-01-13 12:58:18 +01:00
ylecollen
d263a1ba9b Simplify the image upload code
-> do not recompress twice an image to be able to resend it with the same quality
-> replace hard code m.image and m.video by the dedicated const values.
2015-01-13 12:56:48 +01:00
ylecollen
ef8b4656d0 The settings configuration & Commands were displayed lorem ipsum... 2015-01-13 08:08:39 +01:00
ylecollen
71b9f74569 Replace " " by nil when a room displayname is empty 2015-01-13 07:44:57 +01:00
ylecollen
8f1a3de88d Empty room displayname was not properly displayed. 2015-01-12 18:51:39 +01:00
giomfo
f1d00b6aa6 Fix regression: restore pie-chart during attachment uploading 2015-01-12 18:28:43 +01:00
giomfo
c664813838 MediaManager refactoring: handle upload with mediaLoader (remove UploadManager). 2015-01-12 18:07:39 +01:00
ylecollen
64431f1297 - remove useless code
- localEvent has now an originServerTs so the unsent messages are properly sorted within the history (they are not anymore displayed at the end of the history)
2015-01-12 17:35:38 +01:00
ylecollen
3fb3486626 Can resend unsent text messages (tap on the "unsent" text") 2015-01-12 17:13:40 +01:00
ylecollen
7406878996 Some "unsent" statuses were irrelevant : Some UILabels were not dismissedw while reusing an UITableViewCell. 2015-01-12 15:00:35 +01:00
ylecollen
07d554b992 Fixe SYIOS-51 - spinner appears when backgrounding recents page 2015-01-12 14:19:23 +01:00
ylecollen
c6049967f8 - Fix the https://github.com/matrix-org/matrix-ios-sdk/issues/4 fix
- SYIOS-52 - app wrashses when attempting to send a message on iPad mini (IOS7)
2015-01-12 13:31:54 +01:00
giomfo
ebceed3290 add consoleTools 2015-01-12 11:07:13 +01:00
giomfo
05062121a0 Media Manager: refactoring (download video/image with a unique API) 2015-01-12 11:00:53 +01:00
ylecollen
b88e85daf6 Remove irrelevant files 2015-01-12 10:47:44 +01:00
ylecollen
c39fc8064a Should fix SYIOS-43 : Recents tab on an iPad mini always show a room view.
On iPad devices, the recents list will always be displayed (on IOS 8, the recents list can be hidden with the enlarge button).
2015-01-12 09:17:04 +01:00
Matthew Hodgson
a78a45a88c hopefully fix leaking KVO problem particularly obvious on the simulator (https://github.com/matrix-org/matrix-ios-sdk/issues/4) 2015-01-10 23:21:13 +00:00
ylecollen
2a97155f44 The cache size did not include the media one (it was only the Matrix SDK one) 2015-01-09 17:14:09 +01:00
ylecollen
c0abd65b0d Manage words filtering on In App Alert 2015-01-09 15:58:15 +01:00
giomfo
8ee82edd6b Image Attachment: fix image flickering at the end of uploading 2015-01-09 14:13:03 +01:00
giomfo
92fedf031e Update comment and remove useless code 2015-01-09 12:10:34 +01:00
ylecollen
9f9a36a1f9 The long tap to cancel the download was broken (weird behaviour when the long tap gesture listener is created by the storyboard) 2015-01-09 11:33:32 +01:00
ylecollen
1e870e48b6 Add the upload statistic 2015-01-09 09:54:31 +01:00
giomfo
93f2a343c1 Move MediaManager to /API dir 2015-01-08 21:29:31 +01:00
giomfo
c6b7f9d763 Media Manager refactoring: split the existing file in 2 parts: MediaManager/MediaLoader 2015-01-08 21:23:49 +01:00
giomfo
44e3a723c6 Remove undesirable file 2015-01-08 21:06:30 +01:00
ylecollen
08fb42af48 uploading media displays a pie chart (need to add the statistic) 2015-01-08 18:25:43 +01:00
giomfo
40cc6bfcc0 Media Manager refactoring (in progress) 2015-01-08 18:20:34 +01:00
ylecollen
c35c908d0d IOS8 : dismissViewControllerAnimated is only called if _alert is displayed 2015-01-08 17:41:43 +01:00
ylecollen
67695d8207 Do not display alert when a media picker is displayed. 2015-01-08 17:30:46 +01:00
giomfo
bc7f4245f4 MediaManager refactoring (in progress) 2015-01-08 16:01:25 +01:00
ylecollen
7750ca6516 Long tap on pie chart let the user cancels the media download. 2015-01-08 15:40:05 +01:00
ylecollen
1eede63523 Fix a compilation warning for devices < IOS 8 2015-01-08 13:19:47 +01:00
ylecollen
f95cc44ef0 The media download progress info (pie chart + stats) is displayed in the history. 2015-01-08 11:31:25 +01:00
ylecollen
b418892187 Add a progressView in the roomTableViewCell but it is not yet managed 2015-01-08 09:49:34 +01:00
ylecollen
231044ab9a CustomImageView updates :
-> The MediaLoader is not not anymore cancelled when an Image URL is set. The media downloaded is done in background

-> check if there is a pending download to the image URL before starting a new one.
The medias could have been downloaded several times with the UITableViewCell reuse management or when the image was zoomed in full screen.
The MediaManager warns by now when the media download is ended.
2015-01-07 17:26:37 +01:00
ylecollen
ae338ffa05 Display the download stats info while downloading the high res picture (full screen mode) 2015-01-07 15:49:29 +01:00
giomfo
8f9a3ca3e4 Image attachment: improve image handling when table view is refreshed 2015-01-07 14:11:33 +01:00
ylecollen
004d470585 The contentMode was not properly managed. 2015-01-07 12:18:20 +01:00
ylecollen
a13141e340 The contentMode was not properly managed. (reverted from commit b0fae6539f68aca145a30963aac27defdb42933f) 2015-01-07 12:17:19 +01:00
ylecollen
12fb38a228 The contentMode was not properly managed. 2015-01-07 11:53:54 +01:00
giomfo
9e76042675 SYIOS-30 - iOS needs typing notifs like the web client
- matrix console sends now typing notifications.
TODO: we still need to handle received typing notifications.
2015-01-07 11:19:59 +01:00
ylecollen
6a89e9d6dd Fix SYIOS-41 : file uploads (and downloads) should be able to happen in parallel with basic progress meters 2015-01-07 10:45:35 +01:00
giomfo
7a6c9cbed3 Bug Fix, attached image is blank at the end of upload 2015-01-07 10:38:29 +01:00
ylecollen
c8cc883e8a MXHTTPClient::requestWithMethod has two new blocks to track the upload/download progress. 2015-01-07 09:11:21 +01:00
ylecollen
f4557edd48 -> create a PieChartView to be reusable
-> add a Pie chart when a media is downloading to display the download progress.
2015-01-06 18:12:45 +01:00
ylecollen
2ef941d6fc The image preview is now displayed in fullscreen 2015-01-06 15:44:34 +01:00
ylecollen
bbb1a6be27 Media zooming : display the thumbnail while the high res picture is downloading.
It is better to have a black screen.
2015-01-06 11:08:29 +01:00
giomfo
1f2966cdd0 Fix regression in previous commitment related to SYIOS-26: The app can work offline when debackgrounded but not when restarting from cold 2015-01-06 10:36:57 +01:00
ylecollen
18cc725611 Iphone 6 Plus issue : in landscape with split view, the roomViewController was dismissed after selecting a video/image. 2015-01-06 09:57:21 +01:00
ylecollen
7a11f1399c Add the pitch to zoom gesture to a zoomed image 2015-01-06 09:41:44 +01:00
ylecollen
8ead5a5c4a The both button messages use the same color as the tabbar text one. 2015-01-05 17:07:41 +01:00
ylecollen
ade8487327 Fix second half of SYIOS-38 - bad UX when updating avator & display name in settings
-> request to the user to save pending profile updates before switching to an other tab
2015-01-05 16:55:51 +01:00
giomfo
6e90a1db68 BugFix SYIOS-26 - The app can work offline when debackgrounded but not when restarting from cold 2015-01-05 16:38:19 +01:00
giomfo
86780c014b Update Mantle version 2015-01-05 15:23:42 +01:00
giomfo
bf95b4f4ed Prepare SYIOS-26: "The app can work offline when debackgrounded but not when restarting from cold"
In relation with the SDK change on mxSession, we introduce a matrixHandler status to handle following status: loggedOut, logged, storeDataReady, serverSyncDone.
(Boolean 'isLogged' and 'isInitialSyncDone' are removed).
2015-01-05 15:11:40 +01:00
ylecollen
0ffda15e91 Half fixed SYIOS-38 - Bad UX when updating avator & display name in settings
-> add a "Save changes" button : it saves any profile updates
-> fix the rotated avatar issue while uploading it (the disabled image was not set)
-> add a mask view over the section instead of disabling one item
2015-01-05 14:25:11 +01:00
ylecollen
57d249bab9 Should avoid flickerings while updating the oneself avatar 2015-01-05 10:15:26 +01:00
ylecollen
c2dce15cbe Should fix SYIOS-42 - Avatar and displayname missing in the "More" tab. 2015-01-05 09:20:16 +01:00
Matthew Hodgson
06d66573c1 dummy commit 2014-12-24 16:26:27 +00:00
ylecollen
0d7b1a4844 The 1:1 room name was not refreshed when the member name is updated 2014-12-24 16:32:24 +01:00
ylecollen
84093a8d12 Start a 1:1 chat with an user should not defined a name to let MatriX SDK manage it by itself (i.e. display the other member name) 2014-12-24 16:30:51 +01:00
ylecollen
91a5fd9faa Remove the selected room in the recents list when the splitViewController displays the recents AND the selected room. 2014-12-24 13:25:12 +01:00
ylecollen
7ec93672a2 It was required to tap twice to display members list 2014-12-24 11:10:41 +01:00
ylecollen
3cd151d00e Should fix SYIOS-28 - There is no way to view a user's mxid (or other profile info) on IOS.
The new viewcontroller also manages the member actions in the room (kick, ban....)
2014-12-24 11:07:07 +01:00
ylecollen
322b9d691a fix many issues in the member detail sheet 2014-12-24 11:07:06 +01:00
ylecollen
2d3e54463b First implementation (incomplete) 2014-12-24 11:07:05 +01:00
manuroe
8f7ed9b1a1 SYIOS-26 Make the app usable when starting the app offline.
Added another callback parameter to [MXSession start]: onStoreDataReady to indicate when the app can start to work offline
2014-12-23 19:02:03 +01:00
ylecollen
9e9f9b8517 the title used to be animatable once. 2014-12-23 16:44:20 +01:00
ylecollen
ab8c59f621 The "close" button was not always removed. 2014-12-23 16:38:04 +01:00
giomfo
4cc9578f0b Force back to Recents on clear cache 2014-12-23 16:06:08 +01:00
giomfo
5a2881e0e7 BugFix SYIOS-33: Current dev shows lots of rooms with blank recents entries which crash on entry 2014-12-23 15:08:36 +01:00
ylecollen
64b65c2642 The application user can update his own power level. 2014-12-23 08:30:07 +01:00
ylecollen
ec3c634909 Add a close button when zooming an image or Validating an image selection. 2014-12-22 18:07:21 +01:00
giomfo
06ccac4ed6 Trigger back pagination asynchronously to prevent UI freeze 2014-12-22 16:50:45 +01:00
giomfo
14a5bd58b1 Launch the app on Recents tab when user is already logged 2014-12-22 16:16:34 +01:00
ylecollen
6affb99296 1 - the room topic is animated when lon tapping on it
2 - the media picker used to close itself on IOS 8.
2014-12-22 15:45:43 +01:00
giomfo
5951cbf144 Add unread messages count in Recents title 2014-12-22 14:19:33 +01:00
ylecollen
acdceba5a7 The power leverl pie was not properly rendered when the cell was selected : the grey part was hidden. 2014-12-22 13:31:54 +01:00
ylecollen
c281f61bca Add a preview from a picked picture
Can capture a video/picture
2014-12-22 11:55:28 +01:00
ylecollen
e74ce12ea5 Add a preview from a picked picture
Can capture a video/picture
2014-12-22 11:54:49 +01:00
giomfo
37c2a1411b Back pagination: cancel operation when it becomes useless 2014-12-22 11:13:23 +01:00
manuroe
a01c392117 Lock Console on the Matrix 0.2.0 pod 2014-12-22 10:38:20 +01:00
manuroe
8879ab113a Renamed postXXX methods to sendXXX to avoid confusion with HTTP POST 2014-12-22 10:23:26 +01:00
manuroe
65e354afb9 Fixed build warning: %d -> %tu for NSUInteger 2014-12-22 08:38:39 +01:00
giomfo
6a5d24fa2f Fix SYIOS-14 Switch to using new media repo... 2014-12-19 18:55:42 +01:00
giomfo
29f973ed56 Fix SYIOS-14: Switch to using new media repo for sending attachments/avatars 2014-12-19 17:16:24 +01:00
manuroe
9929690dd6 Prepare 0.2.0 2014-12-19 16:38:36 +01:00
ylecollen
c4333ee73a The keyboard closed itself on iphone 4 2014-12-19 16:01:26 +01:00
ylecollen
31f93254a7 Use MatrixHandler::getPowerLevel 2014-12-19 16:01:26 +01:00
ylecollen
eece33e7e7 Chan update the power level of other members 2014-12-19 16:01:26 +01:00
giomfo
35b0b06c60 Home: Improve handling of room alias text input 2014-12-19 15:54:01 +01:00
giomfo
974d86e09f Bug Fix SYIOS-23: With multiple devices, a message sent from one device does not appear on another 2014-12-19 14:16:22 +01:00
ylecollen
b99d23ad46 The topic animation was not restarted when the application was debackgrounded 2014-12-19 11:45:30 +01:00
ylecollen
d72bca8929 Add the cache size to the "clear cache" button 2014-12-19 11:03:09 +01:00
ylecollen
0e75739d8d Merge remote-tracking branch 'origin/develop' into develop 2014-12-19 10:42:31 +01:00
ylecollen
126379b1b8 The zoomed image was not properly scaled after screen rotation 2014-12-19 10:38:19 +01:00
manuroe
682058841f Podfile.lock updated with last pod 2014-12-19 10:36:09 +01:00
Yannick Le Collen
09a0a3498e Fix SYIOS-24 : Console : create a "Clear Cache" button 2014-12-19 10:02:09 +01:00
Yannick Le Collen
5333589229 Remove useless code 2014-12-19 08:45:57 +01:00
Yannick Le Collen
8a271dfc18 Animate the topic label if it is longer than the screen width 2014-12-19 08:03:39 +01:00
Yannick Le Collen
9e21db9b56 Merge remote-tracking branch 'origin/develop' into develop 2014-12-19 08:02:17 +01:00
David Baker
90144e06b0 Add an API for registering for push notifications and make matrixconsole support it (pending a push gateway for matrixConsole). 2014-12-18 15:29:34 +00:00