Commit Graph

18 Commits

Author SHA1 Message Date
Max Radermacher
208e234692
Remove a bunch of debug()/verbose() lines 2023-11-17 16:40:49 -06:00
Max Radermacher
9781408af8
Clean up some choo choo errors 2023-10-13 11:27:36 -05:00
Harry
aa0e250cb7
[Death to TSAccountManager, long live TSAccountManager][9] Migrate usages of old TSAccountManager to new 2023-10-05 08:56:08 -07:00
Sasha Weiss
128d582a2a
Rip out notifications for sealed-sender decryption errors 2023-10-04 15:49:10 -07:00
Max Radermacher
1a9af9915b
Fix queue for edited message notifications 2023-10-04 13:23:05 -05:00
Harry
b9aaaa6dd5
Prompt user before crashing on device transfer receiving end 2023-09-11 17:20:54 -07:00
Harry
31ddc90368
Add "failed story send" notification 2023-08-28 16:27:23 -07:00
Pete Walters
66d7592f59
Only update notifications for unread edits 2023-08-09 13:38:47 -05:00
Igor Solomennikov
064346e45a
Convert OWSSounds to Swift. 2023-05-30 10:23:08 -07:00
Max Radermacher
25825edd07 Swiftify some TSAccountManager code 2023-04-12 18:05:36 -07:00
Evan Hahn
8e33543e7a Change Promise to Guarantee because it always resolves
This promise always resolves, so let's make it a `Guarantee`.

This change should have no user impact.
2023-02-08 14:11:30 -08:00
Max Radermacher
0c3cec9146
Update SignalCoreKit
* Update filterForDisplay call sites
2023-01-31 12:34:07 -08:00
Harry
df97cad708
Show a notification when being logged out via 403 from chat server
* Don't fail debug builds after locking the account and failing config lookup

* Show (no-op) notification when deregistered

* Show re-registration when tapping the push notification

* Remove asserts that can (and should) fail when deregistered

* run genstrings
2023-01-19 15:00:01 -08:00
Harry
e29ae33fed
Better past missed call handling in call disposition
* Mark previous call events read when a later call event is responded to

* Clear missed call notifications when a future call is actioned on any device

* Do two queries for TSCall updates
2023-01-17 16:05:55 -08:00
Evan Hahn
3bcbd60d86
Skip onboarding permissions screen if unnecessary
We ask users for contact and notification permissions during
registration.

If the user abandons registration after approving or denying these
requests, we don't need to show them the permissions screen again, as
it'll just show an "Allow Permissions" button that advances to the next
screen.

This also cleans up some of the methods. Not strictly related, but it
felt like a good time to rename some methods and clean up some logging
(especially because we're making changes here).
2023-01-12 16:42:13 -06: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
Sasha Weiss
063acc1419
Batch messageId notification cancellations 2022-09-27 14:26:44 -07:00
Sasha Weiss
9c74e8dfcd
Serialize canceling notifications with posting them 2022-09-23 13:48:05 -07:00