Commit graph

400 commits

Author SHA1 Message Date
David Baker
4d2aba33ed More messages for invites & things 2015-01-26 17:29:45 +00:00
ylecollen
c16028d633 -> the contacts list are sectioned in 2 lists
1 - matrix users
2 - local contacts

The user must validate the local contacts sync to trigger them.
2015-01-26 18:06:13 +01:00
giomfo
48444a121f Merge remote-tracking branch 'origin/develop' into with-contacts 2015-01-26 16:53:49 +01:00
giomfo
716fc40670 Console: Refactor saving process in Settings 2015-01-26 16:51:34 +01:00
ylecollen
975bae5120 ContactsViewController is not anymore an UITableViewContrller : It is by now an UIViewController.
A segmented control has been added but it is not yet plugged.
2015-01-26 15:18:58 +01:00
David Baker
77b635376d Add instanceHandle param to pushers API and generate one in matrix console. 2015-01-26 14:15:11 +00:00
ylecollen
b16e6e35c4 The dictionary 3PID -> matrixID is now cached.
We can assume that only few users would become matrix users between two syncs.
2015-01-26 11:55:04 +01:00
ylecollen
bbd890780e The contactManager has now two matrix user check mode
1 - when CONTACTS_3PIDS_SYNC is set
the client looks up for ALL the known 3PIDs even if the linked contacts are not displayed
2 - when CONTACTS_3PIDS_SYNC is NOT set
the client looks up to the PIDS on demand i.e. the displayed contacts request their PIDs refresh.
2015-01-26 11:05:53 +01:00
ylecollen
072e00d309 Update to MXCContact to manage Matrix only Contact 2015-01-26 09:08:18 +01:00
giomfo
565665ccb8 Console: Prepare email linkage.
- Update settings UI (link email is not supported yet).
2015-01-23 18:45:13 +01:00
ylecollen
51c3c4ff66 The matrix Users are displayed if the user did not give access to his local contacts book. 2015-01-23 16:08:54 +01:00
ylecollen
f0e9580df9 -> the MXUsers were not always displayed at cold start : the mxSession was not yet initilized
-> application background/debackground management : do not remove the MXUsers before triggering the 3PIDs lookup. It avoid useless flickerings.
2015-01-23 16:04:11 +01:00
giomfo
4051cf4fdb Merge remote-tracking branch 'origin/develop' into with-contacts
Conflicts:
	samples/matrixConsole/matrixConsole.xcodeproj/project.pbxproj
	samples/matrixConsole/matrixConsole/AppDelegate.m
2015-01-23 15:53:39 +01:00
giomfo
a5fc4380d9 Rename MatrixHandler to MatrixSDKHandler 2015-01-23 15:36:05 +01:00
giomfo
89abac538e Merge remote-tracking branch 'origin/develop' into with-contacts
Conflicts:
	samples/matrixConsole/matrixConsole.xcodeproj/project.pbxproj
2015-01-23 14:57:50 +01:00
giomfo
c7afc09b21 Move source files 2015-01-23 14:42:04 +01:00
giomfo
4ce33b1500 Replace Console prefix with MXC 2015-01-23 14:22:02 +01:00
giomfo
5c3baf0180 Merge remote-tracking branch 'origin/develop' into with-contacts
Conflicts:
	samples/matrixConsole/matrixConsole.xcodeproj/project.pbxproj
2015-01-23 14:10:47 +01:00
giomfo
40f2fb1e62 Renaming:
ConsoleTools -> MXCTools
ConsoleGrowingTextView -> MXCGrowingTextView
CustomImageView -> MXCImageView
CustomAlert -> MXCAlert
MemberActionsCell -> RoomMemberActionsCell
2015-01-23 13:46:27 +01:00
ylecollen
a88da4dd0c Merge remote-tracking branch 'origin/develop' into with-contacts 2015-01-23 11:14:31 +01:00
ylecollen
8f821582f3 Should fix SYIOS-65 IOS8 : in case of search in recents, keyboard is not dismisssed when user selects a room.
-> Replace the header section by tableHeaderView
-> With IPhone 6+ and in landscape orientation, the search bar is not removed but the keyboard is dismissed.
2015-01-23 11:01:38 +01:00
ylecollen
bc5b0ce01f Remove a weird messages animation when setting a text message. 2015-01-22 18:09:33 +01:00
ylecollen
21a687e7de Remove a growingTextView flickering when a message is sent with a dismissed keyboard. 2015-01-22 17:43:57 +01:00
ylecollen
679d206bc2 Add sanityy check 2015-01-22 17:40:23 +01:00
ylecollen
cb56308395 1 - Should fix SYIOS-64 Chat room : unexpected blank lines are added into history when user types in growing textview
2 - do not scroll anymore to the bottom when the device orientation is updated

3 - do not resize the growing textview height when the keyboard is dismissed : it provides weird UX.
2015-01-22 17:31:44 +01:00
giomfo
8788c41483 Console BugFix - SYIOS-44 - Credentials persist across logout. 2015-01-22 17:26:51 +01:00
giomfo
7b8bac3c68 Console BugFix: Open correctly new created room. 2015-01-22 13:56:25 +01:00
giomfo
9e08f73091 Console BugFix: handle correctly left room in splitViewController 2015-01-22 13:01:01 +01:00
ylecollen
92f1e2f602 -> use the new MXRestClient::lookup3pids method
The matrix IDs are retrieved in one time instead of getting them one by one

-> ConsoleEmail and ConsolePhoneNumber inherit of ConsoleContactField.
ConsoleContactField manages the matrix part (id + thumbnail download...)

-> the unknown room members are added into the contacts list.
Thus, it would easier to start a chat.
2015-01-22 12:01:12 +01:00
giomfo
c46778697e Console BugFix: adjust Room details UI when no room is selected 2015-01-22 11:09:14 +01:00
ylecollen
9aa4dcd5a6 Merge remote-tracking branch 'origin/develop' into with-contacts 2015-01-22 08:16:51 +01:00
ylecollen
03922c5f53 Should fix SYIOS-61 - Chat room : cannot scroll to bottom when keyboard is opened whereas the growing textview contains multi-lines text. 2015-01-21 16:52:36 +01:00
ylecollen
7ffcd500f2 -> Increase the max Cache size cell height to improve the UX
-> The max/min values were not checked each time the user updated them.
2015-01-21 15:08:29 +01:00
ylecollen
ea52e71cae The clear cache button did not recompute the true cache size. 2015-01-21 14:11:58 +01:00
ylecollen
4efa61228c Merge from Delevop branch 2015-01-21 13:35:19 +01:00
ylecollen
7af13a0b21 Remove useless property definitions + synthesize 2015-01-21 13:26:29 +01:00
ylecollen
2ae84ad0b9 Offer to send invitation to non Matrix user (by email or SMS). 2015-01-21 13:25:13 +01:00
giomfo
178029133e Console BugFix: hide pieChart on complete upload in case of table refresh 2015-01-21 12:27:51 +01:00
giomfo
a84c4fc7ee Code cleaning 2015-01-21 11:56:00 +01:00
giomfo
d87fda44b5 Room members list: refresh the member's last seen info (every 5 sec) 2015-01-21 11:18:03 +01:00
ylecollen
64d37212dd -> increase the contact row height to 50 (to match to the members list cell).
The thumbnail size is also the same so it should avoid downloading thumbnails if they are already cached

-> renamed some fieds

-> fix some refresh issues
2015-01-21 10:48:38 +01:00
ylecollen
c99134351a Manage the presence ring in the contacts list 2015-01-21 09:15:28 +01:00
ylecollen
3baa245871 Tap on a contact invite you to start a chat with 2015-01-20 18:40:55 +01:00
ylecollen
590886a99a Load the matrix thumbnail to replace the native contact book one. 2015-01-20 18:03:03 +01:00
giomfo
eee71e1672 BugFix: fix wrong pagination on joined room 2015-01-20 17:54:57 +01:00
ylecollen
a1a5849881 -> Check if any contact contains a matrix email
-> display the Matrix icon at the right cell side.
2015-01-20 16:29:42 +01:00
giomfo
5dfbd850dd BugFix: restore timestamp display in messages with unsent components. 2015-01-20 16:29:07 +01:00
ylecollen
dcb8badf91 Merge remote-tracking branch 'origin/develop' into with-contacts 2015-01-20 13:44:24 +01:00
ylecollen
c9f8958d5a Add a 4th sections : contacts
The contacts are displayed in a list.

There is no check if one of the field is a matrix identifier.
2015-01-20 13:33:01 +01:00
giomfo
8fb7e57e2c BugFix SYIOS-60 - In a self chat, Console takes ages to paginate back - even if messages are in cache
Optimize room message update (limit text content size measurement).
2015-01-20 12:41:27 +01:00
ylecollen
c035142a18 Fix a compilation warnings 2015-01-19 17:33:23 +01:00
ylecollen
d9cda2faa9 Should fix SYIOS-56 : add cache size handling in settings 2015-01-19 16:53:29 +01:00
ylecollen
5672b385c0 1 - the uploads are cancellable
2 - delete a room also cancelled epnding uploads/downloads
2015-01-19 15:30:45 +01:00
ylecollen
7b84bb2320 --> 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
1fe4959b5b 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
689d9bbddb Remove a useless refresh on messages display 2015-01-16 18:23:21 +01:00
giomfo
569bf47cf5 Fix regression introduced since multithreading
+ Refactor messages handling
2015-01-16 16:39:58 +01:00
David Baker
6d3d9c1a49 Send the device preferred language. 2015-01-16 11:25:35 +00:00
David Baker
c8e0756995 D'oh, semicolons. 2015-01-16 11:25:19 +00:00
David Baker
b99cb293d1 Merge branch 'develop' into apns 2015-01-16 10:48:31 +00:00
David Baker
7b9c0e3625 Add Localizable.strings with loc-keys for APNS. 2015-01-16 10:47:25 +00:00
giomfo
410c49e0b4 Move an Action in Actions section 2015-01-16 11:40:38 +01:00
giomfo
09c316da53 FixRegression: typing badge was stretched 2015-01-16 11:27:01 +01:00
manuroe
d6dab31b5c Console: Fixed UITextView creation on non UI thread 2015-01-16 11:07:25 +01:00
ylecollen
6ebbc6ebc2 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
f177f57f36 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
213f162e93 -> Add ConsoleTools::fileExtensionFromContentType
-> Update cachePathForMediaURL with this new method
2015-01-16 09:54:37 +01:00
ylecollen
a4d25edae0 ConsoleTools update
-> move folderSize to it
-> add listFiles:timeSorted:largeFilesFirst
2015-01-16 09:01:59 +01:00
ylecollen
45ea190d56 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
45fb48534b Merge branch 'develop' into apns 2015-01-15 17:05:20 +00:00
ylecollen
3475039a1a Useless variable 2015-01-15 17:17:25 +01:00
ylecollen
645560b4fb Remove dead code 2015-01-15 17:13:36 +01:00
ylecollen
fa50bbaab8 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
f710c047bb BugFix SYIOS-57 - Back pagination does not work well for self chat 2015-01-15 13:17:00 +01:00
giomfo
6c49780243 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
7c4b68bdd2 Fix SYSIOS-53 - multilines text input that expands as you type mutiplines would be nice 2015-01-14 18:15:12 +01:00
ylecollen
6cb898ea88 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
ylecollen
c74619c507 First implementation of multiLines textInput (SYIOS-53). 2015-01-14 15:17:20 +01:00
giomfo
f89d0e2a23 typing notification: hide typing badge for the current user in room members list 2015-01-14 15:01:10 +01:00
giomfo
5a62ab7bfe Feature SYIOS-25 - Console: display app version in settings 2015-01-14 14:22:07 +01:00
giomfo
26ec928641 BugFix SYIOS-50: When you post a multiline message, the bubble vertical spacing gets confused. 2015-01-14 14:05:45 +01:00
manuroe
951d70e489 Prepare 0.2.1 release 2015-01-14 13:26:49 +01:00
manuroe
4e7d4415be Do not embed external codes in the project. CocoaPods is our friend for that. 2015-01-14 11:52:51 +01:00
giomfo
d3cc51b6ff BugFix: loading wheel stuck on room when user opens the room during initial sync. 2015-01-14 10:16:17 +01:00
giomfo
878e9529ff 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
eaadd96267 Add GrowingTextView to the project 2015-01-14 09:29:52 +01:00
giomfo
8072956eed 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
4247348619 -> 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
2dd7d21c85 MatrixConsole: use SDK to resolce mxc:// 2015-01-13 17:39:56 +01:00
manuroe
d5d757fb60 CustomImageView: Fixed crash when the image URL is not valid 2015-01-13 17:11:15 +01:00
giomfo
e8251c0e05 Typing notification: update typing notification sending 2015-01-13 16:07:34 +01:00
David Baker
283ddeffcf Omit platform if it's production to be a bit terser. 2015-01-13 14:34:17 +00:00
David Baker
9ddffd558f Merge branch 'develop' into apns 2015-01-13 14:28:47 +00:00
ylecollen
6f31a90a09 An uploaded video is stored in the media cache to avoid downloading it later again 2015-01-13 13:22:20 +01:00
ylecollen
a988974773 Do not remove anymore the download rate during a download (it flickers too much). 2015-01-13 12:58:18 +01:00
ylecollen
a351096f34 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
c4e90e0dd0 The settings configuration & Commands were displayed lorem ipsum... 2015-01-13 08:08:39 +01:00
ylecollen
f9e6074e5b Replace " " by nil when a room displayname is empty 2015-01-13 07:44:57 +01:00
ylecollen
814377005d Empty room displayname was not properly displayed. 2015-01-12 18:51:39 +01:00
giomfo
e4e2cfa99a Fix regression: restore pie-chart during attachment uploading 2015-01-12 18:28:43 +01:00
giomfo
f02f82b066 MediaManager refactoring: handle upload with mediaLoader (remove UploadManager). 2015-01-12 18:07:39 +01:00
ylecollen
6baf80b501 - 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
5d0895b588 Can resend unsent text messages (tap on the "unsent" text") 2015-01-12 17:13:40 +01:00
ylecollen
14ec52a87e Some "unsent" statuses were irrelevant : Some UILabels were not dismissedw while reusing an UITableViewCell. 2015-01-12 15:00:35 +01:00
ylecollen
4a41113f88 Fixe SYIOS-51 - spinner appears when backgrounding recents page 2015-01-12 14:19:23 +01:00
ylecollen
7c1998aa65 - 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
2f50e2da36 add consoleTools 2015-01-12 11:07:13 +01:00
giomfo
ae8f610c76 Media Manager: refactoring (download video/image with a unique API) 2015-01-12 11:00:53 +01:00
ylecollen
7c7d023efa Remove irrelevant files 2015-01-12 10:47:44 +01:00
ylecollen
756af0e774 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
73a1103f24 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
4ec4be80e3 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
25d36367de Manage words filtering on In App Alert 2015-01-09 15:58:15 +01:00
giomfo
fcd388d99a Image Attachment: fix image flickering at the end of uploading 2015-01-09 14:13:03 +01:00
giomfo
6be8a5c196 Update comment and remove useless code 2015-01-09 12:10:34 +01:00
ylecollen
75f91820aa 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
7ed285e19d Add the upload statistic 2015-01-09 09:54:31 +01:00
giomfo
8b10b1baf0 Move MediaManager to /API dir 2015-01-08 21:29:31 +01:00
giomfo
11ff1fd788 Media Manager refactoring: split the existing file in 2 parts: MediaManager/MediaLoader 2015-01-08 21:23:49 +01:00
giomfo
8ae53afd15 Remove undesirable file 2015-01-08 21:06:30 +01:00
ylecollen
7a0edfa63c uploading media displays a pie chart (need to add the statistic) 2015-01-08 18:25:43 +01:00
giomfo
8d5f726303 Media Manager refactoring (in progress) 2015-01-08 18:20:34 +01:00
ylecollen
53bc918c36 IOS8 : dismissViewControllerAnimated is only called if _alert is displayed 2015-01-08 17:41:43 +01:00
ylecollen
559fe432c3 Do not display alert when a media picker is displayed. 2015-01-08 17:30:46 +01:00
giomfo
bc2de21a5c MediaManager refactoring (in progress) 2015-01-08 16:01:25 +01:00
ylecollen
ef98e684eb Long tap on pie chart let the user cancels the media download. 2015-01-08 15:40:05 +01:00
ylecollen
9d99e256d9 Fix a compilation warning for devices < IOS 8 2015-01-08 13:19:47 +01:00
ylecollen
8f3d32d79e The media download progress info (pie chart + stats) is displayed in the history. 2015-01-08 11:31:25 +01:00
ylecollen
e14595c7ef Add a progressView in the roomTableViewCell but it is not yet managed 2015-01-08 09:49:34 +01:00
ylecollen
9ec7818640 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
10ea385d6b Display the download stats info while downloading the high res picture (full screen mode) 2015-01-07 15:49:29 +01:00
giomfo
a16f434be3 Image attachment: improve image handling when table view is refreshed 2015-01-07 14:11:33 +01:00
ylecollen
7379459bdc The contentMode was not properly managed. 2015-01-07 12:18:20 +01:00
ylecollen
342db04488 The contentMode was not properly managed. (reverted from commit b0fae6539f68aca145a30963aac27defdb42933f) 2015-01-07 12:17:19 +01:00
ylecollen
e9512ac7ea The contentMode was not properly managed. 2015-01-07 11:53:54 +01:00
giomfo
18ff48a0f2 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
fccc963202 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
4bdd855cd8 Bug Fix, attached image is blank at the end of upload 2015-01-07 10:38:29 +01:00
ylecollen
4195c301de MXHTTPClient::requestWithMethod has two new blocks to track the upload/download progress. 2015-01-07 09:11:21 +01:00
ylecollen
7c8b0e4975 -> 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
37c3860cb5 The image preview is now displayed in fullscreen 2015-01-06 15:44:34 +01:00
ylecollen
f946d38dab 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
653dd1fc2c 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
d853020cde 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
66bee3a228 Add the pitch to zoom gesture to a zoomed image 2015-01-06 09:41:44 +01:00
ylecollen
62bb0aad45 The both button messages use the same color as the tabbar text one. 2015-01-05 17:07:41 +01:00
ylecollen
d3ef0de60d 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
ae315e62cc 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
7382db2e64 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
b50492037e 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