Commit Graph

2790 Commits (25b0fbd949a33e23602e7a6495235b52acde9e8d)
 

Author SHA1 Message Date
Scott Nonnenberg ee0b0f5ffb Remove all concept of 'key conflict' from the app 8 years ago
lilia 51080141cd Update identity store tests
// FREEBIE
8 years ago
lilia 27692b4dfc Normalize whitespace in storage tests
// FREEBIE
8 years ago
lilia 0e0f14723e Rename model IdentityKey -> IdentityRecord
Reduce ambiguity in between the record itself, which now stores other
information besides the public key, and its `publicKey` attribute, which
contains an ArrayBuffer of key material.

This model is internal to SignalProtocolStore.

// FREEBIE
8 years ago
lilia aa6dbb2e59 Preserve UNVERIFIED status on key change
Don't revert it to default, which would effectively downgrade the security model
for that contact.

// FREEBIE
8 years ago
lilia 12d9bb61c3 Let removeIdentityKey delete the entire record
Previously we would only clear the publicKey since that was the only attribute,
but now we should delete the entire record. This method is currently only called
from tests.

// FREEBIE
8 years ago
lilia d1858de39b Default nonblockingApproval to false
saveIdentity is invoked with only two arguments from the protocol layer, in
which case we should default nonblockingApproval to false.

76c28cfa7a/src/org/thoughtcrime/securesms/crypto/storage/TextSecureIdentityKeyStore.java (L87)

// FREEBIE
8 years ago
lilia 261ec003ee Account manager calls saveIdentityWithAtttributes
saveIdentityWithAtttributes allows directly setting all properties of an
identity key record. In AccountManager we use it to save our own identity
key after a new registration.

Previously we would remove the existing key first in order to coerce firstUse to
true, but now we can simply set it explicitly, along with a VERIFIED status.

// FREEBIE
8 years ago
lilia 2a76bb6fc2 Add new methods to identity store
// FREEBIE
8 years ago
lilia 50dd9c6772 Add identityKey model validation
This will enforce that all identity record attributes are valid and present
before allowing the record to be saved. This is necessary since we will be
exposing a lower-level method to save an identity with explicit values for
firstUse, nonblockingApproval, and verified status.
8 years ago
lilia b93042f12f Add verified status
// FREEBIE
8 years ago
lilia c6bfdec84d Remove blockingApproval
// FREEBIE
8 years ago
lilia 53e7e1be3a Fix libsignal-protocol using wrong direction flag
// FREEBIE
8 years ago
lilia 6fdd0f1625 Handle identity errors on decrypt
Previously we only expected these errors to occur when decrypting prekey
messages, so we need to add handling for them in the case of a normal message.

// FREEBIE
8 years ago
lilia 1eec94dbb7 Update tests for saveIdentity
// FREEBIE
8 years ago
lilia ba3a6efb12 Add tests for all the new isTrusted behaviors
// FREEBIE
8 years ago
lilia 2584f4fae4 Fix tests
// FREEBIE
8 years ago
lilia f095a1583e Fetch profiles whenever conversations are opened
For a group, fetch everyone's profile.

// FREEBIE
8 years ago
lilia d295fa7057 Update libsignal-protocol
// FREEBIE
8 years ago
lilia 1b9eb83422 Update isTrustedIdentity for directional trust
// FREEBIE
8 years ago
lilia 4e4aedd4ba Pass in non/blockingApproval args to saveIdentity
Multiple cases here:
1. setting our own key on registration
1. changing identities from a safety number change dialog

Note that removeIdentityKey runs before saveIdentity, so we'll always end up
with firstUse: true on our own key.

// FREEBIE
8 years ago
lilia 3ca511a10a Unwrap removeIdentityKey from calls to saveIdentity
saveIdentity is now reponsible for determining firstUse, so we must not remove
the existing key before updating it.

Previously, the implementation provided an extra check against overwritting an
existing key, but that should be done via isTrustedIdentity instead.

// FREEBIE
8 years ago
lilia 82469713d2 Update saveIdentity
Add support new blockingApproval and nonblockingApproval arguments
Populate the firstUse property on identity key records
Return whether an existing record was overwritten.

References
https://github.com/WhisperSystems/Signal-Android/commit/39d4a7#diff-69ede72c549da6bcbcd959935995b7e9R45

// FREEBIE
8 years ago
lilia 4d4dd3341f Add isBlocking/isNonBlockingApprovalRequired
These analyse the identity key record and user preferences to determine whether
a key requires approval for sending.

// FREEBIE
8 years ago
lilia 22e907a8d4 Add getProfile to MessageSender
// FREEBIE
8 years ago
lilia 0c5a69cce4 Add support for getProfile to TextSecureServer
// FREEBIE
8 years ago
lilia 9f4a657e8a Add database migration
// FREEBIE
8 years ago
Heather Booker 5a3610c8e0 Specify font-family for identicon in notification
Fixes #904, where letters in notification bubbles were being
displayed in serif font on Antergos (Arch) OS.

// FREEBIE
8 years ago
lilia 3afe378063 Remove legacy property from OutgoingMessage 8 years ago
lilia d47ced1199 Don't recompute outgoing message padding
We can use the same padded plaintext across multiple numbers or attempts rather
than re-creating it every time we encrypt to a particular number.

// FREEBIE
8 years ago
lilia 30201969be Inline some functions in OutgoingMessage
Since we no longer have legacy messages to send, we can simplify things a bit
here.

// FREEBIE
8 years ago
lilia ca7fdc91b7 Remove error.png, unused since 53407918
// FREEBIE
8 years ago
Scott Nonnenberg 6b62daa62b Make Jumbomoji normal size when in the conversation preview
FREEBIE
8 years ago
armata ce20e4f471 fix dark theme button hover color 8 years ago
Sebastian Malek 2781ff798a align country list text to left 8 years ago
Sebastian Malek 6b4970de21 fix #1241: registration page readability issue 8 years ago
lilia 834faf3e39 Update translations
// FREEBIE
8 years ago
lilia e8548879db Stop sending legacy DataMessages 8 years ago
Scott Nonnenberg 3fbd1ab618 Use error.stack instead of error for console log
Chrome/V8 give you the error name, message and callstack at that
property, where toString() gives you [object NavigatorUserMediaError]

FREEBIE
8 years ago
Scott Nonnenberg 98f88607a0 Remove recorder UI when we fail to 'getUserMedia'
FREEBIE
8 years ago
Scott Nonnenberg 475ae469f1
Bump version to 0.41.3
FREEBIE
8 years ago
Scott Nonnenberg 2b010cf73a
Capture missing manifest.css change
FREEBIE
8 years ago
Scott Nonnenberg 3b19d8f0e2 Light themes: Add gray background color to message detail screen
Outgoing messages were hard to see, white on white.

FREEBIE
8 years ago
Scott Nonnenberg 0a07c8ad2c Fix attachment styles in iOS theme
FREEBIE
8 years ago
Scott Nonnenberg 267956ec2f
Bump version to 0.41.2
FREEBIE
8 years ago
Scott Nonnenberg 24174312b9 Fix: Show attachment views; they trigger update syncrhonously
FREEBIE
8 years ago
Scott Nonnenberg 5afc16da06 Remove default Alt+S shortcut for showing the app
Verified that the Alt+S shortcut isn't installed on new installs, but I
suspect that it won't fix the situation for users who have already
installed older builds, and have the Alt+S shortcut in place.

FREEBIE
8 years ago
Scott Nonnenberg 2b5e56f6be Use setElement to ensure that re-parented views listen for events
FREEBIE
8 years ago
Scott Nonnenberg 0caba71901 Protos: Re-order ContactDetails and GroupDetails to match iOS
FREEBIE
8 years ago
Scott Nonnenberg 3d65581c30 Protos: Put avatar in each message type like iOS/Android
FREEBIE
8 years ago