Commit Graph

5712 Commits

Author SHA1 Message Date
Matthew Chen
178711f3ce Feature flags for .qa. 2021-02-05 18:50:31 -03:00
Matthew Chen
f7fbe56b79 Feature flags for .beta. 2021-02-05 18:50:02 -03:00
Matthew Chen
75c993549b Feature flags for .production. 2021-02-05 18:39:56 -03:00
Matthew Chen
c72ab49160 Feature flags for .qa. 2021-02-05 18:35:35 -03:00
Matthew Chen
a87dadd8e1 Feature flags for .beta. 2021-02-05 18:35:30 -03:00
Matthew Chen
1b284b393d Feature flags for .production. 2021-02-05 18:10:27 -03:00
Matthew Chen
70c8df3824 Feature flags for .qa. 2021-02-05 17:38:19 -03:00
Matthew Chen
55b0e8a136 Feature flags for .beta. 2021-02-05 17:38:15 -03:00
Matthew Chen
8aa24793c1 Feature flags for .production. 2021-02-05 17:38:07 -03:00
Matthew Chen
8434091ead Respond to CR. 2021-02-05 17:20:52 -03:00
Matthew Chen
d43895bfa3 Respond to CR. 2021-02-05 17:04:04 -03:00
Matthew Chen
3f1dd1c872 Limit profile name component length to 26 glyphs. 2021-02-05 17:02:47 -03:00
Michelle Linington
ebdf67395e Additional PR Feedback
Our stored avatars are still PNG. Fallback to the png content type and
file extension if the underlying data is png.
2021-02-05 11:11:20 -08:00
Michelle Linington
0b8a8bf864 PR Feedback 2021-02-05 11:07:08 -08:00
Michelle Linington
34e0f99cfd Add additional validation group avatars we receive
Strengthens validation requirements for group avatars a user sets. Also,
checks these requirements on avatars we receive.

Introduces a data migration to drop any large group avatars.

This fixes an issue some users were reporting of jetsaming in the share
extension. All group avatars are stored in-memory on TSGroupModel.
Until we have a better strategy for memory management here, we'll want
to keep group avatars small.
2021-02-05 11:07:08 -08:00
Matthew Chen
09147ad10f Fix application of extra headers. 2021-02-05 15:53:47 -03:00
Matthew Chen
2a4c3ace7b Refine handling of "request approve" vs. "member added". 2021-02-05 15:03:42 -03:00
Matthew Chen
d99395299e Rename group change classes. 2021-02-05 09:18:19 -03:00
Matthew Chen
82dd6446d1 Enforce max group name byte length. 2021-02-05 09:18:18 -03:00
Matthew Chen
d20c8f8f4e Feature flags for .qa. 2021-02-04 11:30:31 -03:00
Matthew Chen
1bbd1ce583 Feature flags for .beta. 2021-02-04 11:30:23 -03:00
Matthew Chen
80c2604b10 Respond to CR. 2021-02-04 11:08:59 -03:00
Matthew Chen
856c5ac058 Use OWSURLSession when generating link previews. 2021-02-04 10:57:48 -03:00
Matthew Chen
e359de0aad Merge branch 'release/5.3.3' 2021-02-04 10:57:26 -03:00
Matthew Chen
fe1f6d64f4 Enforce max attachment upload sizes more strictly. 2021-02-04 10:45:12 -03:00
Matthew Chen
cb43be6e60 Enforce max attachment upload sizes more strictly. 2021-02-04 10:45:12 -03:00
Matthew Chen
e171488dd8 Rework app readiness. 2021-02-04 09:55:39 -03:00
Matthew Chen
f7c4f10d69 Rework app readiness. 2021-02-04 09:55:39 -03:00
Matthew Chen
cce7a14e0c Rework app readiness. 2021-02-04 09:55:39 -03:00
Matthew Chen
645bd76bd5 Rework app readiness. 2021-02-04 09:55:39 -03:00
Matthew Chen
d78daae895 Improve handling of missing group change protos. 2021-02-04 09:54:30 -03:00
Matthew Chen
3f3574f3fe Respond to CR. 2021-02-03 09:47:34 -03:00
Matthew Chen
e85e0993aa Disable OWSURLSession caches by default. 2021-02-03 09:42:59 -03:00
Matthew Chen
b636d29ead Add logging around 413 errors. 2021-02-03 09:42:59 -03:00
Matthew Chen
4d9e78c423 Fetch profiles for dropped profiles when opening a thread. 2021-02-03 09:39:58 -03:00
Jordan Rose
f8b1985930 Bump the database schema version 2021-02-02 10:25:56 -08:00
Jordan Rose
dd35454f2c SSK: In Swift code, always use Logger rather than OWSLogger
Logger includes the file/line information; OWSLogger does not.
2021-02-02 10:25:56 -08:00
Jordan Rose
6b334ff7e4 SSK: Begin storing sessions in serialized protobuf form 2021-02-02 10:25:56 -08:00
Jordan Rose
fefe43d91b SSK: Adopt SignalClient.SessionRecord.hasCurrentState 2021-02-02 10:25:56 -08:00
Jordan Rose
27f9d4f62f Don't fail trying to send a null message to an untrusted identity
In this case we have bigger problems than just a broken session, and
the user needs to manually trust the identity again (even if that's
just by sending a message themself)
2021-02-02 10:25:56 -08:00
Matthew Chen
86c70f6025 Feature flags for .qa. 2021-01-29 17:28:43 -03:00
Matthew Chen
8f85241753 Feature flags for .beta. 2021-01-29 17:28:36 -03:00
Matthew Chen
9c961b98b2 Fix accessibility in chat history items. 2021-01-29 16:43:02 -03:00
Matthew Chen
6c578e816f Improve internal logging around manual migrations. 2021-01-29 11:18:13 -03:00
Jordan Rose
7fc6b2ef7f SSK: propagate untrusted identity errors when ensuring sessions
Regression introduced in "Use SignalClient for message encryption"
2021-01-28 12:03:50 -08:00
Jordan Rose
e595090046 Rename SSKSessionStore.containsSession() to containsActiveSession() 2021-01-28 12:03:50 -08:00
Jordan Rose
c7b6ba7010 Make OWSAccountIdFinder's methods into class methods
OWSAccountIdFinder is no longer used for dependency injection in
SignalMetadataKit, so there's no need to allocate empty NSObjects just
to call the methods.

No functionality change.
2021-01-28 12:03:50 -08:00
Jordan Rose
4a86e60b82 SSKSessionStore: fix containsSession to check for an /active/ session
This is how it's being used: not just that you've /ever/ had a session
with a contact/device, but that you /currently/ have a session with
them.
2021-01-28 12:03:50 -08:00
Jordan Rose
f88e8e0838 SSKSessionStore: Only use AxolotlKit types when talking to the db
This puts up the facade for the future we'll eventually want: the
database contains serialized protobuf data, not AxolotlKit
SessionRecord objects. This also allows us to transparently handle
fetches when the database can contain *either* SessionRecords or
serialized data---we only need to check which we have.
2021-01-28 12:03:50 -08:00
Jordan Rose
05725078f1 SSK: Migrate SSKSessionStore to Swift
This is a no-change migration /except/ that I've dropped entry points
that are unused in the app or tests.
2021-01-28 12:03:50 -08:00