Commit Graph

3557 Commits (a6b6775aa1ae2e09005ef96d09508c27524e4932)
 

Author SHA1 Message Date
Greyson Parrelli a6b6775aa1 Bump version to 4.20.9. 6 years ago
Greyson Parrelli 79857b98b3 Fix bug with quoted reply notifications. 6 years ago
Greyson Parrelli 0c3535cff8 Bump version to 4.20.8 6 years ago
Greyson Parrelli 626e6930a5 Fix search header rendering after rotation.
The sticky header cache was keeping views across rotations, causing them
to render incorrectly afterwards. I added a method to invalidate the
header layouts after rotation.

Fixes #7890.
6 years ago
Greyson Parrelli 44f5cc9070 Annotate methods in AttachmentUtil as @WorkerThread. 6 years ago
Greyson Parrelli e45a4b86d8 Bump version to 4.20.7 6 years ago
Greyson Parrelli 30be732ae8 Don't auto-download attachments from unknown contacts. 6 years ago
Greyson Parrelli 643dd0b679 Bump version to 4.20.6 6 years ago
Greyson Parrelli 2b45b3caa2 Fixed export and restore of FTS tables.
First, FTS index contents do not need to be exported. They will be recreated naturally.

Second, we can't export the secret FTS tables, or SQLite will think it's corrupted.
6 years ago
Greyson Parrelli b7282589de Fixed issue with backup and restore when creating new tables.
Fixes #7863
6 years ago
Greyson Parrelli 6bc7f2a5a4 Fix NPE in FTS when snippet is null. 6 years ago
Greyson Parrelli 3731e2a74a Fix jumbomoji rendering and EmojiTextView resizing.
Fixed an issue where jumbomoji were not properly being rendered
when using system emoji. Also fixed an issue where the text
content wasn't properly being recalculated when the view is
resized.

Fixes #7875
6 years ago
Greyson Parrelli bb40f38124 Bump version to 4.20.5 6 years ago
Greyson Parrelli f0e5aa312e Allow EmojiTextView to redraw after changing emoji setting.
Also just fixed some minor formatting issues.
6 years ago
Greyson Parrelli ceafb0d130 Reduce emoji flickering and other ellipsize woes.
1. Switch to using default text rendering if there's no emoji present in
the string.

2. Reduce redudant redraws by skipping of setText() calls for identical
strings.

Together, these two changes should reduce the vast majority of
flickering we see with EmojiTextView ellipsizing.
6 years ago
Moxie Marlinspike 70c2a863cc Correctly store backup
Fixes #7831
6 years ago
Greyson Parrelli d813275f42 Increase number of recent conversations shown when sharing.
Intended to reduce the pain of #7202.
6 years ago
Greyson Parrelli 5650a02cfb Sort search results exclusively by date.
I think I was initially lured into searching by rank because it gives
the illusion of providing the "best match". However, in practice, FTS
never gives back "bad" matches with low ranks -- all of the results it
returns will contain your query in some form (most commonly a direct
substring, but they do take some liberties if you have multiple tokens
in your queries). Given that, in general, more recent search results are
in fact more relevant, we can sort by date exclusively and get a better
ordering overall.
6 years ago
Greyson Parrelli 0503c9eea5 Prevent replies on action messages.
Fixes #7829
6 years ago
Greyson Parrelli abae419853 Flatten multiline text snippets in search results.
If a search result snippet spans two lines, we only show the first line.
For the purpose of display, we first remove all newlines in order to
make the full snippet visible.
6 years ago
Greyson Parrelli 71ccbf2a1b Secondarily sort search results by date.
This should help with getting back search results that more closely
match user intention.
6 years ago
Greyson Parrelli 92a64f59a4 Switch search to use the existing header.
Probably best to not try out any possible new design changes just yet.
Let's stick with what we have.
6 years ago
Greyson Parrelli 6d56447de2 Bump version to 4.20.4 6 years ago
Greyson Parrelli e189fff856 Fixed some cursor-related bugs in Search. 6 years ago
Greyson Parrelli 8fc63c4d78 Bump version to 4.20.3 6 years ago
Greyson Parrelli e6e8416aec Use correct recipient for message search results.
Previously, we'd always use the recipient of the message record, which
was incorrect for messages sent to groups. Now we always use the
recipient for the matching thread record.

Fixes #7823
6 years ago
Greyson Parrelli a792a6e6ae Fixed ThumbnailView sizing problems.
Glide will use the dimensions of the target ImageView as the dimensions
for the image it's loading. This caused problems in the case of
ThumbnailView, as we were constantly changing the ImageView dimensions,
meaning Glide may not have the most recent values (it may be called in
between measure calls, for instance).

To solve this, we now will always override the default image dimensions
when we load an image. If no dimensions are present, we will default to
the layout_width and layout_height of the ThumbnailView.

Fixes #7810
6 years ago
Greyson Parrelli 07e8ae716c Fix EmojiTextView regression.
Using the singleLine attribute will make the TextView report that the
lineCount is always 1, regardless of actual text length. This breaks our
manual ellipsize calculation. Because you can't actually read the
singleLine attribute at runtime, I've switched relevant usages of
singleLine to use maxLines=1 (relevant usages are EmojiTextViews where
singleLine was set and ellipsize was set to 'end').

Fixes #7744
6 years ago
Greyson Parrelli 0b1b568893 Fix notifications for replies.
Notifications for replies will no longer display as a "Media Message" if
they do not contain media. Instead, they will just contain the reply
text.

Fixes #7798
6 years ago
Greyson Parrelli 3a827d1c48 Fix dark theme in search.
Fixed #7821
6 years ago
Moxie Marlinspike 622b3afce0 Update build instructions 6 years ago
Moxie Marlinspike 107f6b4277 Bump version to 4.20.2 6 years ago
Moxie Marlinspike 32b608ff2f Updated language translations 6 years ago
Greyson Parrelli eb42b7b26a Bump version to 4.20.1. 6 years ago
Greyson Parrelli 93effc8890 Disable contact sending. 6 years ago
Greyson Parrelli 5d75f11cbc Bump version to 4.20.0. 6 years ago
Greyson Parrelli 0449647cf9 Implemented full-text search.
You can now use the search bar on the conversation list to find
conversations, messages, and contacts.
6 years ago
Greyson Parrelli c0b75c2ef5 Disable shared contact sending.
Sending shared contacts isn't backwards-compatible, so we want to have a
few releases where receiving is enabled, but not sending. That way, when
we enable sending, most users should be able to properly receive the
shared contact messages.
6 years ago
Greyson Parrelli ca260a92e3 Convert vCard attachments to Shared Contacts.
When you share a vCard from an external app (like the Contacts app) into
Signal, we'll now convert it to a pretty Shared Contact message and
allow you to choose which fields of the contact you wish to send.
6 years ago
Greyson Parrelli e6c16cf28d Allow editing of contact names.
Took care to properly format CJK names.
6 years ago
Greyson Parrelli 54dbffaf30 Added ability to share contacts.
The "contact" option in the attachments tray now brings you through an
optimized contact sharing flow, allowing you to select specific fields
to share. The contact is then presented as a special message type,
allowing you to interact with the card to add the contact to your system
contacts, invite them to signal, initiate a signal message, etc.
6 years ago
Greyson Parrelli 17dbdbd0a9 Handle quote position task finishing after fragment detaches.
There's a chance that the AsyncTask that retrieves a quoted message's
position could finish after the fragment is detached, which would cause
a crash. I've changed it so if this case occurs, the result is ignored.

Also, I noticed that when searching the message table, if a quote can't
be found, we'd end up traversing the entire table. To prevent this from
taking forever on large message tables, I've limited it to searchin only
what is currently present in the adapter.

Fixes #7756
6 years ago
Greyson Parrelli ca8fecea9c Clean up camera flipping, handle having missing cameras.
Did a refactor to better organize the camera flipping code. Also, I
wanted to make sure we handle the cases where the user doesn't have two
cameras (or no cameras, for that matter). In these cases, we just don't
show the appropriate buttons.
6 years ago
Niklas Hambüchen f1c79eaebf Add button to flip camera (front vs rear). Fixes #6279 6 years ago
Moxie Marlinspike 6c1a1fb9ad Use cache directory on removable storage for backups if present
Fixes #7692
6 years ago
Moxie Marlinspike 35d158cfee Treat Permissions "not now" as a denial
Fixes #7713
6 years ago
Moxie Marlinspike a5047cb17b Fix for sender's expiring messages in group with unregistered user
Fixes #7719
6 years ago
Moxie Marlinspike 5006b36e2d Show lock notification immediately after setting is toggled
Fixes #7659
Closes #7678
6 years ago
Moxie Marlinspike c6e20f715b
Merge pull request #7782 from jlund-signal/contributing-updates
Update the contribution guidelines.
6 years ago
Joshua Lund fcc9c2778d Update the contribution guidelines. 6 years ago