Commit Graph

22799 Commits

Author SHA1 Message Date
Josh Schneier
89730f2b85 Improve accessibility a bit 2016-12-09 15:10:25 -05:00
Michael Kirk
e2d725a041 [SSK] Ignore messages with unknown Content
Most like it would indicate a new feature that this old client doesn't
understand. Otherwise we'd print an empty bubble.

// FREEBIE
2016-12-09 09:31:07 -05:00
Michael Kirk
c1ab36576e Fix crash when attaching media
Seems these crashes were introduced when transitioning from
DJWActionSheet -> UIAlertController

// FREEBIE
2016-12-09 09:31:07 -05:00
Michael Kirk
edebd14d42 Ignore messages with unknown Envelope.Contents
// FREEBIE
2016-12-09 08:45:20 -05:00
Michael Kirk
6b67dc4ef5 bump release target
// FREEBIE
2016-12-08 12:34:35 -05:00
Michael Kirk
359deb933c Bump version
// FREEBIE
2016-12-04 22:58:27 -05:00
Michael Kirk
243ff190bc Fix crash in group listing / new group views
The broken code addressed in 8211d4584f
was duplicated a couple of places. This commit ferrets out the rest of
them and centralizes the logic in the ContactsManager.

// FREEBIE
2016-12-04 22:58:02 -05:00
Michael Kirk
a8f37ef5ce Bump build
// FREEBIE
2016-12-04 14:06:23 -05:00
Michael Kirk
103f0450a1 Build avatar from contact initials even if they don't have a phone
number

The invite contact picker was rendering the "#" avatar for contacts who
had a name, but no phone number.

In some ways this approach is dumber. But since we have "surprising"
logic to set the contacts firstName to a phone number or maybe a company
name when contacts are built from ABContacts, this approach is more on
the level with the existing assumptions of what could be in that field
(which is to say, pretty much anything).

// FREEBIE
2016-12-04 14:03:12 -05:00
Michael Kirk
8211d4584f Don't explode when missing first name
// FREEBIE
2016-12-04 14:01:08 -05:00
Michael Kirk
753c445bfc [SSK] Update libphonenumber
// FREEBIE
2016-12-04 14:01:08 -05:00
Russ Shanahan
e7126f8c60 Less confusing "#" avatar for unknown Contact instead of "+"
For consistency with the Android and Desktop client behavior.

* Show a placeholder avatar when no image, initials (#1512)

  If all we know about the user is their phone number, their avatar image
  is rendered as a placeholder. Previously, it would render the first few
  characters of their phone number as if they were initials (eg. "+")

* Rename, extend OWSContactsManager methods (#1512)

  Rename from: nameStringForPhoneIdentifier
           to: displayNameForPhoneIdentifier

  Also, add:
  - (BOOL)nameExistsForPhoneIdentifier:(NSString *)identifier;

  Which reports whether there's any "name" for a contact.

* Remove unused typedefs

  These aren't used in the project anymore, and they were causing
  compiling warnings due to a lack of nullability indication.

* Resolve some OWSContactsManager nullability warnings

  Did a pass through all of the existing nullability warnings in
  OWSContactsManager. Tried to pick descriptors that best reflected the
  behavior of the methods.

// FREEBIE
2016-12-04 14:01:07 -05:00
Michael Kirk
745a5a2769 return immutable identifiers
// FREEBIE
2016-12-03 19:33:26 -05:00
Michael Kirk
7036c63392 Compatible with libphonenumber 0.9.1
// FREEBIE
2016-12-02 19:13:34 -05:00
Russ Shanahan
7125028159 Rename an OWSContactsManager method
From nameStringForPhoneIdentifier
  To displayNameForPhoneIdentifier

* Add nullability descriptions

* Fix the mock object to adhere to new nullability rules

// FREEBIE
2016-12-02 18:48:29 -05:00
Michael Kirk
fb508470d9 Bump build
// FREEBIE
2016-12-01 17:44:07 -05:00
Michael Kirk
1dcd1830e6 Fix crash in group member listing
Restore contactsComparator which is still being used in the group member
listing

partial revert of 81e1ec4b9e

// FREEBIE
2016-12-01 17:38:48 -05:00
Michael Kirk
273b3a3ac7 Update translations
// FREEBIE
2016-12-01 16:14:31 -05:00
Michael Kirk
a84bff3c64 bump build
// FREEBIE
2016-12-01 16:11:42 -05:00
Thomas Guillet
e58de07af7 Prevent going to the "Background Notifications" when tapping "Notification Sounds" 2016-12-01 15:51:25 -05:00
Michael Kirk
e6f0130f35 Fix peek from inbox (#1509)
fixes #1506

// FREEBIE
2016-12-01 15:46:08 -05:00
RiseT
f29a0fe49b Change safety number strings to be singular
// FREEBIE
2016-11-30 20:11:41 -05:00
Michael Kirk
942353cba2 Fix crash on "show safety numbers" in group thread
// FREEBIE
2016-11-30 15:04:26 -05:00
Michael Kirk
5a0141003d "No Contacts" screen uses new invite flow
fixes #1501

// FREEBIE
2016-11-30 15:03:18 -05:00
Russ Shanahan
81e1ec4b9e Compare both first and last names when sorting (#1487)
If two names have the same last name, ensure we fall back on the
first name when sorting them.

// FREEBIE
2016-11-30 15:01:27 -05:00
Michael Kirk
d6e9745956 Bump version
// FREEBIE
2016-11-30 13:32:06 -05:00
Michael Kirk
f0461891e0 Convert Localizable.strings tools to UTF-8 (#1420)
- Update translations
- Updated transifex scripts to convert appropriately
- Run script from any dir
- Check that target directories exist
- We're currently not pulling any strings from JSQMVC

UTF-8 is preferred since we can see diffs in GH and have sane merges.

// FREEBIE
2016-11-29 16:54:01 -05:00
Josh Schneier
896dd026d2 Remove DJWActionSheet 2016-11-29 10:20:56 -05:00
Josh Schneier
f686fc9a87 Style refactor to reduce rightward drift
// FREEBIE
2016-11-29 10:20:56 -05:00
Russ Shanahan
34ffce89f5 Only calculate fullName once, & sortable fullnames (#67)
1. Adds caching of the calculated fullName value
   (which will slightly improve performance)
2. Incorporates fullNames that respect the first-name-first
   rules of the currently unmerged PR #22
3. Adds two new fullName properties that can be used
   for sorting comparators
4. Move the comparator into the model object for easy testing

Includes tests to ensure that the first name first and last name
first sorts are behaving as expected.

// FREEBIE
2016-11-29 10:02:46 -05:00
Michael Kirk
ed29b154b8 update translations
// FREEBIE
2016-11-26 15:19:03 -05:00
Michael Kirk
f30c733ef3 Custom contact picker for invite flow
Preferred to the system contact picker because:
1. removes "group" clutter from header, unlikely to be used much.
2. can select while searching
3. fixes unified contact problem where e.g.
   If only one of your contact has a phone number, they appear disabled
   when choosing to invite via messaging, even though the other linked
   contact *does* have a phone number.
4. label users w/o email so it's clearer why they can't be selected

Also:

* Twitter share-image was too tall

// FREEBIE
2016-11-26 14:43:42 -05:00
Michael Kirk
3083e2929c OWSContact from CNContact
Used in new contact picker for the Signal invite flow 

* populate emails
* nullability annotations

// FREEBIE
2016-11-26 12:29:02 -05:00
Michael Kirk
f9a60b622d Use cleaner signal link in invite email
// FREEBIE
2016-11-22 18:47:03 -05:00
Michael Kirk
7120ca1192 Make sure we're laying out contact cell after assigning avatar
// FREEBIE
2016-11-22 16:55:07 -05:00
Michael Kirk
2bac3e4280 Better fit for "delete account" button on iPhone5
- move invite button faaaaaaaar away from the "delete account" button.

// FREEBIE
2016-11-22 15:11:53 -05:00
Michael Kirk
0aa226f3d1 [SSK] If a new message type is introduced, ignore it
rather than printing an empty bubble.

// FREEBIE
2016-11-22 12:18:05 -05:00
Michael Kirk
df756423f2 Ignore unknown group messages
otherwise when (e.g.) android adds a new group type they'll be shown as
empty bubbles.

// FREEBIE
2016-11-22 12:14:39 -05:00
Michael Kirk
06ca3c9290 Mail and Message invite flow
* Spruce up compose contact-picker
- Fix random sorting for contacts missing first or last name
- Add Avatar to contact picker
- de-dupe contacts

Better copy for INVALID_MESSAGE error.

// FREEBIE
2016-11-22 12:11:35 -05:00
Michael Kirk
bed5250397 remove redunant method
// FREEBIE
2016-11-21 22:03:37 -05:00
Josh Schneier
c0c71fe261 Switch back to the default keyboard after sending 2016-11-21 11:37:57 -05:00
Michael Kirk
584118a9fc compare safety numbers with clipboard (#1475)
* Compare safety numbers with clipboard

// FREEBIE
2016-11-21 11:06:37 -05:00
Michael Kirk
de7752ab20 Revert 50abf4d02d
The real problem was addressed (or, worked around) here:
1eb234e8ba

// FREEBIE
2016-11-17 18:22:02 -05:00
Igor Ranieri Elland
a0dc5950fc Automatically adjust message bubble text size on dynamic text changes. (#1469)
* Automatically adjust message bubble text size on dynamic text changes.

- Addresses part of #1453.

* Renamed dynamic text notification handler method.
2016-11-17 17:07:18 -05:00
Mike
40c3a01b3e Update README with link to development guide
The results of #1442 should probably be referenced in the README.

FREEBIE
2016-11-17 15:25:53 -05:00
Igor Ranieri Elland
e67af9d52b Make settings modal.
- Issue raised in #1453.
2016-11-17 13:57:18 -05:00
Thomas Guillet
f1b4bd772c Prevent bogus message emission on group deletion
Only send a message if the local number is part of the group

* Fix error on empty group #1449
* Fix an unlogged issue about notification sent to group members even is the local user already quit the group
2016-11-17 13:41:32 -05:00
Russ Shanahan
087f753979 Voiceover fix- Do not read "no messages" text when it's hidden (#1437) FREEBIE 2016-11-17 13:31:46 -05:00
Russ Shanahan
b40f6acd01 Voiceover fix: Message author read as thread name (#1437) FREEBIE
There was a bug in voiceover mode. When reading messages, Voiceover
would read out "message author: message content" for each chat bubble,
but the message author was always the name of the chat. So if it was
a contact chat, every message would be read as if from the other party,
and if it was a group chat, every message would be from the title of
the group.

This patch looks up the display name for the given signal id so
Voiceover reads the correct name for each message. It will read "Me" if
the message is outgoing.
2016-11-17 13:31:46 -05:00
Michael Kirk
89451013d9 Bump build target
// FREEBIE
2016-11-17 13:31:46 -05:00