Commit graph

400 commits

Author SHA1 Message Date
David Baker
a2c7049398 s/instance_handle/profile_tag/ 2015-02-03 16:30:00 +00:00
manuroe
324cbe97d9 Console: Removed HPGrowingTextView source code from our repository as we use CocoaPods 2015-02-03 17:26:12 +01:00
David Baker
94cb1de4a7 Don't send platform in data dict: just use a different app_id. 2015-02-03 15:16:13 +00:00
giomfo
079e4f674d Console - Display Event JSON: Fix issue during long press location handling. 2015-02-03 15:54:19 +01:00
giomfo
68081a0eda Console: Display Event JSON on long press.
TODO: Enable the Redact button
2015-02-03 15:34:32 +01:00
manuroe
38c2124d74 Rollback: Removed MXContactManager component from the SDK.
Fixed Console code that started to use it.
2015-02-03 15:10:32 +01:00
manuroe
809d826f0f Fixed warning found by xCode Analyze 2015-02-03 13:36:32 +01:00
ylecollen
363a0bbd25 -> Reduce the rageshake timeout
-> apply screen scale to the screenshot (avoid having ugly ones on iphone 6+)
2015-02-02 17:24:51 +01:00
ylecollen
e3fb0017b9 Add useful info in the bug report body. 2015-02-02 17:05:22 +01:00
ylecollen
6cbda9bad1 Add rageskahe feature : when the user shakes his device > 1.5s, the client takes a screenshot and prepare an email to send to "rageshake@matrix.org".
Nothing is currently added to the body (to be done)
2015-02-02 16:43:47 +01:00
giomfo
dbfe926470 Console: Fix issue on landscape display during search in public rooms. 2015-02-02 14:52:29 +01:00
giomfo
1b0660d176 BugFix SYIOS-16 Add option in Console to join room thanks to its alias 2015-02-02 13:42:58 +01:00
giomfo
a01630ce9a Console - RoomMember picture: Keep in front typingBadge. 2015-01-30 19:14:59 +01:00
giomfo
b31c935c7a Console: remove compilation warnings 2015-01-30 19:06:36 +01:00
giomfo
f4187bf6d6 Console: support m.room.redaction event in live event stream.
TODO: add the option to redact event from iOS console.
2015-01-30 18:47:43 +01:00
David Baker
614b5bb7c8 Action message strings. 2015-01-30 13:23:52 +00:00
giomfo
ace7198c1f Console - Push Notif support: add UIBackgroundModes key in Info.plist with remote-notification value. 2015-01-30 09:48:33 +01:00
ylecollen
52479ede3b Clear the notifications counter when the application is launched/debackgrounded 2015-01-30 09:05:15 +01:00
David Baker
994a9770b3 Add strings for messages where we have the content to display. 2015-01-29 19:00:53 +00:00
ylecollen
129f592ed4 The user country can now be set in the settings (it is already retrieved if there is a valid simcard)
The country is used to internationalize the phonenumbers (because they can defined 3PIDs)
2015-01-29 18:33:39 +01:00
David Baker
6868f7383f Make the push notifications switch work. Also document the API call. 2015-01-29 17:06:37 +00:00
ylecollen
a7a8d29f71 Remove the "cancel" notification warning 2015-01-29 17:07:11 +01:00
ylecollen
359e32c626 -> Add libphonenumber in pod file (pod update is required)
-> the phonenumbers are canonicalized with the default country Code (extracted from the SIM card)
A setting will be added to replaced/defined it.
The phonenumbers are also 3PID so the international format is unique.
2015-01-29 13:40:38 +01:00
ylecollen
7cf4b23092 viewing a room reenables its push notifications 2015-01-29 11:32:15 +01:00
ylecollen
239171fb83 Add an alert to be sure that the user will understand why there is no more alert from incoming message. 2015-01-29 11:19:11 +01:00
ylecollen
2738227683 Tapping on "Cancel" on a notification alert disables any notification for this room until the application is backgrounded / restarted 2015-01-29 11:06:01 +01:00
giomfo
1159a3e2b1 Console: Handle redacted events in room history.
TODO: support m.room.redaction events.
2015-01-28 18:39:23 +01:00
ylecollen
5371dcea35 1 - The contacts are now cached in the filesystem : it should improve the behaviour at could start
2 - the contact updates are now managed since the last sync so it should also improve the contact book
2015-01-28 17:37:51 +01:00
David Baker
574c340d3e Merge branch 'develop' into apns 2015-01-28 15:29:04 +00:00
David Baker
036092a619 Change URL to the live one 2015-01-28 15:28:03 +00:00
ylecollen
5c6301af4f Chat Room ; tap on member thumbnail also opens his member sheet 2015-01-28 11:30:15 +01:00
ylecollen
edd69be267 Display the matrix ID in the contact cell if there is only one. 2015-01-28 09:17:20 +01:00
ylecollen
3b07ae6910 Add ContactDetailsViewController : tapping on a contact thumbnail will open this new viewController if it contains some matrixIDs.
So, the user will be able to see
- thumbnail
- display name
- list of matrix IDs + start a chat with one of them.
2015-01-28 08:25:34 +01:00
giomfo
2bdf32e0bf Console Settings: User can now link emails to his account from settings screen. 2015-01-27 17:24:55 +01:00
ylecollen
81f7fae056 -> start chat with an user tries first to resume existing room before creating a new one. 2015-01-27 16:27:13 +01:00
ylecollen
69dbc492a5 The contact thumbnail did not keep the aspect ratio. 2015-01-27 16:01:22 +01:00
ylecollen
9134daa2c7 1 - add the contacts search
It searches patterns in emails (contain patterns), phone numbers (starts with patterns), display name (contains)

2 - the contactViewController was not resetted when the application was logged out.
2015-01-27 15:43:57 +01:00
ylecollen
b9b5c15683 UIKeyboardWillHideNotification event unregistration was missing 2015-01-27 15:42:04 +01:00
David Baker
0a5bd94799 Merge branch 'develop' into apns
Conflicts:
	samples/matrixConsole/matrixConsole.xcodeproj/project.pbxproj
2015-01-27 10:35:56 +00:00
ylecollen
96dae68712 Fix a typo 2015-01-27 11:12:52 +01:00
ylecollen
ff7dfacf7e The growingTextInput was resized at first character typing 2015-01-27 10:38:17 +01:00
ylecollen
b41fe608c1 Fix a compilation warning on Iphone 6+ 2015-01-27 10:37:15 +01:00
giomfo
3c309c5c5c Merge remote-tracking branch 'origin/develop' into with-contacts
Conflicts:
	samples/matrixConsole/matrixConsole/ViewController/SettingsViewController.m
2015-01-27 10:29:34 +01:00
giomfo
53c80e41fe Console Settings: BugFix Refresh correctly InApp notification rules. 2015-01-27 10:25:36 +01:00
ylecollen
30c0e2b58a 1 - add MatrixSDKHandler::createPrivateOneToOneRoomWith
2 - can start chat with any matrix ID contained in a contact.
2015-01-27 10:15:26 +01:00
ylecollen
538914604b The media cache size slider max value was not properly initialized 2015-01-27 09:28:49 +01:00
ylecollen
bb1a42c85a The collation bar was not displayed in the contacts viewcontroller 2015-01-27 09:19:32 +01:00
ylecollen
2f10552406 The local contacts section does not contain anymore the "unknown" matrix users 2015-01-27 08:36:21 +01:00
ylecollen
8f3074fcc9 Matrix Users section : display only the 1:1 chat members 2015-01-27 08:26:46 +01:00
David Baker
f5ab271ec9 Merge branch 'develop' into apns
Conflicts:
	samples/matrixConsole/matrixConsole.xcodeproj/project.pbxproj
2015-01-26 17:35:42 +00:00
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