Commit Graph

57 Commits

Author SHA1 Message Date
Max Radermacher
8e901365ea
Remove some extra spaces from protobuf files 2024-05-01 13:29:47 -05:00
Elaine
bd3413b3eb
Sync Nicknames with Storage Service 2024-04-08 17:35:31 -06:00
Harry
ca08f61911
Add dontNotifyForMentionsIfMuted storage service field 2023-12-22 15:32:20 -08:00
Max Radermacher
06228ff228
Add Storage Service support for PNIs 2023-10-24 15:07:12 -05:00
Max Radermacher
59478094ed
Consolidate phone number privacy feature flags 2023-10-17 18:24:52 -05:00
Sasha Weiss
72345f13cd
Functionally ignore V1 group records in Storage Service 2023-09-26 09:12:14 -07:00
Marissa Le Coz
22099bdb12
[Recip hiding] Protobuf changes 2023-08-25 13:43:54 -04:00
Max Radermacher
be8ba49b4e
[ServiceId] Update protobuf field names 2023-08-02 17:21:59 -05:00
Sasha Weiss
1398e335a0
Implement username links 2023-07-31 14:58:07 -07:00
Max Radermacher
ebf6b8f5e7
Support PNIs in SignalServiceAddress 2023-03-23 12:43:01 -07:00
Sasha Weiss
5e0586ba7f
Add a flag for showing username education 2023-02-16 12:11:48 -08:00
Sasha Weiss
bb7013ec71
Store the local username on AccountRecord 2023-02-14 11:25:48 -08:00
Sasha Weiss
bfbdf5b78d
Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
Harry
70780cfc7c
Add read state to the onboarding story
* Add readOnboardingStory to AccountRecord

* Add onboarding story read state to SystemStoryManager

* Sync onboarding story read state with storage service

* fix incorrect delete of unviewed system stories
2022-10-18 15:27:13 -07:00
Nora Trapp
bb84fd3473 Add new storyViewReceiptsEnabled flag to storage service 2022-10-18 11:23:26 -07:00
Evan Hahn
370ff654e7
Change license to AGPL
Change license to AGPL

This commit:

- Updates the `LICENSE` file

- Start every file with something like:

      // Copyright YEAR_FIRST_PUBLISHED Signal Messenger, LLC
      // SPDX-License-Identifier: AGPL-3.0-only

---

First, I removed existing license headers with this Ruby 3.1.2 script:

    require 'set'

    EXTENSIONS_TO_CHECK = Set['.h', '.hpp', '.cpp', '.m', '.mm', '.pch', '.swift']

    same = 0
    different = 0

    all_files = `git ls-files`.lines.map { |line| line.strip }
    all_files.each do |relative_path|
      if relative_path == 'Pods'
        next
      end

      unless EXTENSIONS_TO_CHECK.include? File.extname(relative_path)
        next
      end

      path = File.expand_path(relative_path)

      contents = File.read(path)
      new_contents = contents.sub(/\/\/\n\/\/  Copyright .*\n\/\/\n\n/, '')

      if contents == new_contents
        same += 1
      else
        different += 1
      end

      File.write(path, new_contents)
    end

    puts "updated #{different} file(s), left #{same} untouched"

I'm sure this script could be improved, but it worked well enough.

Then, I created `Scripts/lint/lint-license-headers` and ran it to auto-
fix a lot of files. This changed the mode of some files, but I think
that's actually desirable. For example,
`SignalServiceKit/src/Util/AppContext.m` previously had a mode of
`0755/-rwxr-xr-x`, and it's now `0644/-rw-r--r--`.

Then I fixed some stragglers and updated the precommit script.

See [a similar change in the Desktop app][0].

[0]: 8bfaf598af
2022-10-13 08:25:37 -05:00
Nora Trapp
5065e898d4 Rev the storiesDisabled storage service field 2022-10-06 11:08:58 -07:00
Harry
da06c1357c
Show my story privacy settings the first time you send to my story
* Add first send story privacy field to AccountRecord proto

* Store hasSetMyStoriesPrivacyKey on StoryManager

* sync hasSetMyStoriesPrivacy state

* Reuse MyStorySettingsViewController in a sheet view controller

* Show my story privacy settings from conversation picker if unset when selecting my story destination

* reload my story row to change subtitle

* pr feedback
2022-09-27 10:06:01 -07:00
Nora Trapp
c8dc629351 Show active group stories in the conversation picker 2022-09-22 14:53:29 -07:00
Nora Trapp
9776699137 Sync when contacts become unregistered 2022-09-15 14:09:03 -07:00
Harry
5c5058c1d1
Sync onboarding story view state
* add hasViewedOnboardingStory to account record

* Post notifications for TSAccountManager onboarding state

* fix bug with local addressing when updating profile key data

* sync onboarding story view status with accountRecord

* do the bare minimum to keep tests working

* use asVoid
2022-09-13 14:05:34 -07:00
Nora Trapp
ad34089ffe Sync group stories with storage service 2022-09-12 12:00:14 -07:00
Nora Trapp
9bd91f66b6 Allow turning off stories 2022-09-12 10:14:09 -07:00
Harry
877986d5ff
Sync story hidden state across devices
* update contactRecord and groupv2 protos to add hideStory flag

* sync contactRecord and groupv2Record with local storyHidden state on ThreadAssociatedData
2022-09-02 13:09:21 -07:00
Nora Trapp
2ab53b2b14 Sync story distribution lists 2022-07-15 15:05:03 -07:00
george-signal
e528ea8824
Add source device to manifest record
* Populate the source device in manifests we create.
* Log the source device in manifests we fetch.
2022-06-23 17:50:44 -07:00
Sasha Weiss (Signal)
0a089cb63c
Make "Keep Muted Chats Archived" option available publicly 2022-05-26 10:44:43 -04:00
Jordan Rose
390119b54d Sync preferred reactions through storage service 2022-01-03 15:35:37 -08:00
Nora Trapp
9ed5e74b79 Sync additional badge info with storage service 2021-12-17 13:54:20 -08:00
Matthew Chen
d748616977 Change phone number. 2021-11-19 14:28:20 -03:00
Matthew Chen
fc749b4d72 Change phone number. 2021-11-19 14:28:18 -03:00
Eugene Bistolas
858e3ef1c6 [Badging] Set up new subscription on server / stripe 2021-11-09 14:25:55 -08:00
Nora Trapp
9475658233 Sync universal expire timer 2021-04-29 15:46:43 -07:00
Matthew Chen
590067499a Payments entropy, storage service, backup + restore flows.
* Update how payments state is stored in storage service.
* Build 'view passphrase' UI flow.
* Build 'restore payments wallet' UI flow.
* Rework the 'view passphrase' UI flow.
2021-04-06 13:57:07 -03:00
Matthew Chen
2d0fdff372 Payments: Update proto schema. 2021-04-06 13:57:06 -03:00
Nora Trapp
6c17505b68 Sync mute with storage service 2021-03-27 12:13:20 -07:00
Nora Trapp
26253a0a27 Set the proto address during initialization 2021-02-16 13:05:13 -08:00
Michelle Linington
7694423c4d Add a preference for contact/profile avatars 2021-01-12 16:29:29 -08:00
Nora Trapp
5187738c3d Conversation Pinning 2020-09-02 14:13:05 -07:00
Nora Trapp
976dcfe7c8 Invert storage service discoverability flag 2020-08-28 09:23:32 -07:00
Michelle Linington
ca8997d237 Fix rebase failure with StorageService proto
Also, re-run protobuf generation with swift-protobuf-1.8.0 to reduce a
bunch of diff noise. If we decide to migrate, we should do that in a
separate commit.
2020-08-26 17:25:32 -07:00
Michelle Linington
17c166b918 Update proto to re-include legacy link previews flag
After some discussion, it was determined that we'd need to keep this
around to ensure that we'll eventually resolve any unknown fields.
Leaving around an unregistered flag will permanently leave us with an
unknown proto field.
2020-08-26 16:46:43 -07:00
Nora Trapp
f968d6a12a Storage service support for phone number sharing and discoverability 2020-08-26 16:29:29 -07:00
Nora Trapp
9696671f8a Add trustLevel to SignalServiceAddress 2020-08-05 14:36:43 -07:00
Nora Trapp
3d084f958d Mark as unread 2020-05-27 18:29:59 -07:00
Nora Trapp
89450058b4 More proto changes: flatten and limit account to relevant data 2020-03-24 17:11:02 -07:00
Nora Trapp
6a39e3d174 Sync archived status with storage service 2020-03-24 17:11:02 -07:00
Nora Trapp
0849c45f21 Add support for Account record to storage service 2020-03-24 17:11:01 -07:00
Nora Trapp
e6178d54a6 Use proto3 for storage service 2020-03-24 17:11:01 -07:00
Matthew Chen
3e806e776d Add groups v2 record to storage service protos. 2020-02-27 09:53:55 -03:00