From nameStringForPhoneIdentifier
To displayNameForPhoneIdentifier
* Add nullability descriptions
* Fix the mock object to adhere to new nullability rules
// FREEBIE
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
Initially they were there to offer richer error messages when the wrong
code was scanned.
However, we found that people were posting them publicly,
misunderstanding the QR codes to be a kind of personal identifier.
For one, this isn't useful because the QR codes, like safety numbers,
are unique *per* conversation. So they aren't useful in a generic sense.
And secondly this is bad because the QR code contains both parties phone
numbers.
// FREEBIE
* Separate account registration from push token registration
* Provide better errors when validation fails (e.g. numbers don't match, numbers blank)
* More logging during registration
* Call success after setting phone number to avoid any future race condition
This isn't currently causing problems, but it's unexpected that we'd
mutate the state *after* calling a callback which might inuitively rely
on that state.
* Don't throw exception off thread when device keys 404's
* Better async startup handling
- move processing off main thread
- reduce code duplication
- don't wrap it in a transaction in the future case where we want to
further access the DB
// FREEBIE
Fixes the bug wherein:
Given the sender had disappearing messages enabled
And the receiver thinks it's disabled (this can happen due to re-install)
When we receive a disappearing message
The message does start expiring timer and disappear
But you see a notice "<sender> disabled disappearing messages"
Rather than the expected "<Sender> set disappearing messages timer to X".
// FREEBIE