Commit Graph

33 Commits (72e893d5f7153ad477293d489ea910d0956e7ad4)

Author SHA1 Message Date
Matthew Chen daae31d30e Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
8 years ago
Matthew Chen ed369436fb Reduce chattiness of logs; increase log file sizes.
// FREEBIE
8 years ago
Matthew Chen 18e6a1b1cb Respond to post-holiday code reviews.
// FREEBIE
8 years ago
Matthew Chen 0f96341059 Avoid crashing on startup due to database view creation.
* Substitute unread view for unseen view until unseen view is ready.
* Register as many views as possible async.
* Perform blocking, safe migrations before async registration of views.

// FREEBIE
8 years ago
Matthew Chen bf07a8401e Remove an unnecessary database view.
// FREEBIE.
8 years ago
Matthew Chen 4a028d32b1 Filter messages shown in the home view.
// FREEBIE
8 years ago
Matthew Chen dcbb72d851 Filter messages shown in the home view.
// FREEBIE
8 years ago
Matthew Chen c5c4643782 Rework how messages are marked read.
// FREEBIE
8 years ago
Matthew Chen f324327880 Don’t update home view sort order in response to dynamic interactions or verification state changes.
// FREEBIE
8 years ago
Matthew Chen 0e11566824 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 32d97bc6c7 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen e889f49e3b Fix “mark as read” logic.
// FREEBIE
8 years ago
Matthew Chen 31e216519a Respond to CR.
* Add [TSInteraction compareForSorting].
* Add a separate database view for safety number changes.

// FREEBIE
8 years ago
Matthew Chen 7c5a11b221 Changes for unseen indicator.
* Create separate database views for “unseen” and “unread” messages.
* Add “unseen tracking” to info and error messages.
* Rationalize “timestamp” vs. “receipt timestamp”.
* Ensure microsecond precision for interaction sorting.
* Add OWSFail() macros.

// FREEBIE
8 years ago
Michael Kirk fe075d2f77 Support for profile fetching so we can display SN changes upon entering
a thread

// FREEBIE
8 years ago
Michael Kirk fcbfde3874 nonblocking SN change notifications don't percolate group threads to the
top unless there is a message in that thread.

Otherwise the user is overwhelmed by a bunch of group threads with
redundant notifications. The notifications will be there if the user
later enters the threads. The affect is that only the thread with the
relevant message will pop to the top.

// FREEBIE
8 years ago
Matthew Chen f0ca468839 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 0e9da39c6b Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen 686fe679bd Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 7bd4d26532 Add “received at” timestamp to all TSMessages so that they may be sorted properly.
// FREEBIE
8 years ago
Michael Kirk 311d80fb2e Missed calls increment unread counter/badge
This affects:
- per-thread badge in the inbox view
- app badge when viewed from springboard.

// FREEBIE
8 years ago
Michael Kirk 1ebb82f987 Contacts don't have safety numbers until they've exchanged keys.
// FREEBIE
9 years ago
Michael Kirk 0b4d81002f Fix attachment deleting for outgoing messages
Broken in the disappearing messages beta due to sloppy refactoring. =(

// FREEBIE
9 years ago
Michael Kirk 40cdc7f224 disappearing messages
* Support for disappearing messages
* update inbox thread preview when receiving message

// FREEBIE
9 years ago
Michael Kirk a0df56a68e Fix multiple keychange errors (#29)
* Don't attempt to send a message unless we've successfully built a deveice-messages
* Only process message exception when we're done with retries.

// FREEBIE
9 years ago
Michael Kirk 580781e3e4 Incoming Read Receipts
// FREEBIE
9 years ago
Michael Kirk fe7171dd93 Sync messages with your other devices
After provisioning a desktop client, you'll see messages sent from your
phone appear on your desktop client, and messages sent from the desktop
client appear on your phone.

* In the process extracted some of the Attachment processing logic out
  of the giant MessagesManager.
* Some nullability annotations on affected files.

// FREEBIE
9 years ago
Michael Kirk 1d0b645fc9 Update to new protocol (#23)
* new protobufs from libsignal-service-java@a1c93edc40e3ce201fa4e70339a3e6f4e197e319
* Makefile to build ObjC classes from *.proto
* refactored some touched code to minimize duplication
* removed unused protos
* deleted some dead code
* renamed method for clarity

// FREEBIE
9 years ago
Michael Kirk 0f9a3334c1 Ensure interactions removed when thread is deleted
In theory, this should have already been handled by the
YapDatabaseRelationship extension via edges.

However, in practice, there were situations (cause unknown) where
interactions would exist without an edge to their corresponding thread.

Rather than being clever with the edge/callback machinery, now threads
explicitly delete all their interactions, and interactions delete all
their attachments (when applicable).

Also, a class to clean up spurious interactions / attachments

In the process:
- refactored TSYapDatabaseObject init to specify designated initializer
- added some testing niceties to TSYapDatabaseObject

// FREEBIE
9 years ago
Michael Kirk 2858694ee0 style changes // fix compiler warnings
- log errors
- forward declare where possible
- clang-format
- remove inaccurate file headers
- include Pods in Example app build target to get SignalServiceKit warnings
- Fix those warnings!

// FREEBIE
9 years ago
Michael Kirk d66c8bd427 Avoid deadlock while accepting new key (#17)
Using description in log output crashes when the description is a media
message, since printing media description uses a transaction within our
existing transaction.

Instead we'll use a simpler debugDescription for simple text building,
like logging.

// FREEBIE
9 years ago
Michael Kirk a0c147722e Delete last message updates thread preview (signal ios#833) (#3)
* fix thread preview when deleting last message

because we are doing internal accounting of what our "last" message id
is, when we delete the last message, other things get out of whack.
Caching is hard, don't do it! We can efficiently get the last object
using our existing Yap DB view.

//FREEBIE

* remove lastMessageId in favor of lastMessage for cleaner code

//FREEBIE
9 years ago
Frederic Jacobs 5d91a5bd4f Init Commit 10 years ago