Michael Kirk
45c4066a80
Fix deadlock with thread.name
...
For contact threads, thread.name opened a sneaky transaction, which would
sometimes cause a deadlock.
This commit moves the name method to the contact manager and offers an explicit
transaction flavor. There is still a sneaky transaction flavor used in some
places where it's deemed dangerous to plumb through a transaction without
further scrutiny.
2019-08-23 18:45:23 -06:00
Matthew Chen
eccfad0f46
Merge remote-tracking branch 'private/release/2.41.0'
2019-08-06 12:12:39 -03:00
Matthew Chen
4f03f969fc
Rework "view once" messages.
2019-08-01 16:13:37 -03:00
Nora Trapp
cfb5468b2c
Don't force profiles for existing conversations until phone number privacy rolls out
2019-07-31 13:17:37 -07:00
Matthew Chen
bce0870d21
Fix rebase breakage.
2019-07-31 11:09:23 -03:00
Matthew Chen
1e363d2c65
Make uniqueId non-nil.
2019-07-31 10:50:59 -03:00
Matthew Chen
84e9b4999b
Remove usage of primary storage.
2019-07-29 17:25:59 -03:00
Nora Trapp
2a6f643e57
Show the message request dialog on conversations
2019-07-29 12:50:54 -07:00
Matthew Chen
43929dde39
Remove usage of primary storage.
2019-07-29 15:16:51 -03:00
Michael Kirk
61949dda9d
Merge branch 'release/2.41.0-with-uuid-address-unreverted' into mkirk/ri-2.41.0
2019-07-16 18:00:24 -06:00
Nora Trapp
9105b81e9a
Replace a bunch of usages of localNumber with localAddress
2019-07-11 10:52:13 -07:00
Nora Trapp
ae17d61a05
Update quoted messages, per message expiration, and sync transcripts
2019-07-10 13:31:18 -07:00
Matthew Chen
01633dc7be
Let users quote-reply to messages with per-message expiration, but without renderable content.
2019-07-02 10:00:17 -06:00
Michael Kirk
0c944fe9f4
Incoming message has authorAddress
2019-06-27 14:22:13 -06:00
Nora Trapp
7d94af3287
Migrate TSContactThread to support UUIDs
2019-06-27 13:12:52 -07:00
Nora Trapp
34e8a7e4a0
PR Feedback
2019-06-25 10:31:23 -07:00
Nora Trapp
92f817d7fd
Update callsites to use new contacts manager address interface
2019-06-25 10:30:52 -07:00
Matthew Chen
e26a8e1bd4
Convert attachments to be any-only.
2019-06-24 15:34:02 -04:00
Matthew Chen
0ad6012dbf
Minor fixes.
2019-06-05 08:39:39 -07:00
Michael Kirk
a344a0a2ca
Fix crash with old empty threads creationDate is nullable
...
creationDate didn't always exist - we added it and did not backfill it. We
could backfill with a made up date, e.g. [NSDate
dateWithTimeIntervalSince1970:0], but I'm wary of putting surprising bogus data
in the db. Instead I've using an old date during sorting where it's not
surprising.
2019-05-24 15:21:13 -04:00
Michael Kirk
02f6a99da7
AnyGalleryFinder
2019-05-10 17:55:26 -06:00
Matthew Chen
e318a8f224
Refine attachment handling.
2019-05-08 08:57:25 -04:00
Matthew Chen
f3da4af24a
Fix edge cases around sticker interactions.
2019-04-30 09:40:48 -04:00
Matthew Chen
539af6f1ed
Add support for tap and long press on stickers.
2019-04-30 09:40:15 -04:00
Matthew Chen
783858ea52
Remove extra semicolons.
2019-04-30 09:39:04 -04:00
Michael Kirk
b52bfd88bc
HomeView backed by GRDB
2019-04-18 10:11:40 -06:00
Michael Kirk
baef0815b1
GRDB: info message text for interation previews
2019-04-17 15:43:40 -06:00
Matthew Chen
82ceb044e3
Use link preview image when quote replying.
2019-01-23 13:17:23 -05:00
Michael Kirk
5671fd2520
Revert "Revert 'new sort id'."
...
This reverts commit ebae75af00 .
2018-12-19 15:16:36 -07:00
Matthew Chen
f6591fac25
Add debug UI for multi-image sends.
2018-11-02 13:04:05 -04:00
Michael Kirk
06eae47e09
ConversationViewItem -> protocol
2018-09-28 12:58:33 -06:00
Matthew Chen
ebae75af00
Revert 'new sort id'.
2018-09-27 19:40:51 -04:00
Michael Kirk
79add78d51
Merge branch 'release/2.30.1'
2018-09-27 13:03:35 -06:00
Matthew Chen
25d56b30c1
Rework group avatars to reflect conversation colors.
2018-09-27 08:55:20 -04:00
Michael Kirk
b281b37637
replace thread.lastMessageDate/archivalDate -> thread.lastSortId, thread.archivedAsOfSortId
...
Update migration accordingly
Date shown on home view cell is message.receivedAt
2018-09-26 09:52:34 -06:00
Michael Kirk
df61316495
minimize diff senderTimestamp -> timestamp
2018-09-26 09:52:33 -06:00
Michael Kirk
eef1368ad3
Timestamp audit step1: change signature
...
There is no change in functionality in this commit.
Apart from clarifying what the timestamp means (it's the timestamp of the
*sender*), this intentionally breaks all the call sites, so I could have a sane
way to thoroughly audit wherever we're passing in timestamps, to see where
we're depending on them to affect sort order.
For the sake of a cleaner diff of meaningful changes, instead of "fixing"
everything in this commit, I've just added comments and renamed signatures.
2018-09-26 09:52:33 -06:00
Matthew Chen
ae84528dc3
Update avatar colors; add shaded conversation color constants, modify color picker to be color-name-based, not color-based, use shaded conversation colors, remove JSQ.
2018-09-25 16:11:37 -04:00
Matthew Chen
f9eab5cd24
Merge remote-tracking branch 'origin/release/2.29.2'
2018-09-07 15:27:50 -04:00
Michael Kirk
c7662b5a86
Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
...
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen
51e8fdcb25
Use small thumbnail when creating quoted reply.
2018-09-06 16:03:29 -04:00
Matthew Chen
206432fdf0
Add failure methods to thumbnail service.
2018-09-06 15:30:00 -04:00
Matthew Chen
3437361d70
Use new thumbnails in media gallery thumbnails.
2018-09-06 15:30:00 -04:00
Matthew Chen
446ceb2b9c
Rename AttachmentStream methods.
2018-09-06 15:30:00 -04:00
Matthew Chen
498828f93c
Rename AttachmentStream methods.
2018-09-06 15:30:00 -04:00
Matthew Chen
cc5a480baa
Apply OWS log functions in Objective-C.
2018-08-27 12:58:52 -04:00
Matthew Chen
713606271c
Rename fail macros in Obj-C.
2018-08-27 10:29:51 -04:00
Michael Kirk
8829cdfb4b
Toast view when tapped message doesn't exist, mark remotely sourced.
2018-08-10 16:55:54 -06:00
Matthew Chen
03d393553a
Tweak home view cells.
2018-07-10 09:28:11 -04:00
Matthew Chen
83f11ad79b
Don't cache CNContact.
2018-06-20 17:55:14 -04:00