Commit graph

88 commits

Author SHA1 Message Date
Maxim Shishmarev
8ea82b14e3 Add channel id field to invitations 2019-11-25 10:02:24 +11:00
Maxim Shishmarev
a5fce17d8c public chat invitations 2019-11-22 16:16:43 +11:00
Maxim Shishmarev
4dd314c18f Enable profile pictures 2019-11-18 17:34:41 +11:00
Beaudan Brown
685ada5cc5 Merge branch 'clearnet' into prep-merge 2019-11-15 12:31:40 +11:00
Maxim Shishmarev
7c05939f55 Add group admins and the ability to remove members from private groups 2019-11-01 12:00:29 +11:00
Maxim Shishmarev
cf18572049 Adding new group members; establishing sessions between non-friends 2019-11-01 11:57:49 +11:00
Mikunj
589b3f3233 Infer pairing message type from the content.
This should fix device pairing cross platform.
2019-10-29 15:51:40 +11:00
Beaudan Brown
d97eced37b Merge branch 'clearnet' into multi-device 2019-10-23 16:34:56 +11:00
Beaudan Brown
c7a91686a8 Update proto id and use the server id as the attachmentpointer id 2019-10-17 16:49:44 +11:00
Beaudan Brown
5710c1268c Revert id field and add new url field to be compatible with mobile 2019-10-16 16:37:31 +11:00
Beaudan Brown
4e85435bf7 Update attachment pipeline to upload and download from loki fileserver 2019-10-16 15:58:49 +11:00
sachaaaaa
b10835ffc7 Share contact upon authorising secondary device 2019-09-05 21:29:20 +10:00
sachaaaaa
a4411007b0 Pairing authorisations: refactor proto, change sql table, add getters 2019-08-23 16:31:35 +10:00
sachaaaaa
d208614909 Multi-device part 1: make primary account generate and send authorisation to secondary 2019-08-12 15:07:17 +10:00
sachaaaaa
beac7a02bb send "unreachable" ping to allow half-p2p 2019-06-28 12:09:46 +10:00
Mikunj
2c12c8a1d8 Convert profile field in data message to use LokiProfile instead of signal Contact. 2019-05-29 09:26:16 +10:00
sachaaaaa
7186f28019 Ensure a session is always initiated using the prekey assigned to the contact 2019-02-07 17:58:24 +11:00
sachaaaaa
a0f67c22da Merge branch 'textsecure/master' into merge_1_21_0
* textsecure/master: (26 commits)
  v1.21.0
  v1.21.0-beta.4
  Dark Theme: Preserve blue background on app loading screen
  Localization updates
  Fix width of audio player when window is very narrow
  A number of small fixes for Link Previews
  Get rid of the white flash when the app starts up (#3083)
  v1.21.0-beta.3
  Lint fixes
  Introduce new language: NB
  Fail over to all numbers in retry if errors don't have numbers
  Use the proper method for pulling attachments off disk for retry
  Fix rendering bug with verified state in updateVerified()
  Update electron-builder and electron-updater
  Ensure that dialog pops up when permissions denied for voice note
  Lint fixes
  Large update to localization strings
  Link Previews
  Ensure that blocked messages are dropped even after sealed sender
  Don't linkify quoted message contents
  ...

# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	_locales/cs/messages.json
#	background.html
#	config/default.json
#	index.html
#	js/models/conversations.js
#	js/modules/web_api.js
#	js/settings_start.js
#	js/views/conversation_view.js
#	js/views/settings_view.js
#	package.json
#	protos/SignalService.proto
#	stylesheets/_index.scss
#	stylesheets/_settings.scss
2019-02-06 13:53:20 +11:00
Beaudan
2bae6b5eed Removed online broadcast message type, changed ttl logic a little, add p2p address and port to the window object when recieve message 2019-01-31 10:24:34 +11:00
Beaudan
07076c27ae Moved friend status to window, added start of p2p api stuff 2019-01-31 10:24:34 +11:00
Beaudan
b417edfc9b Added new protos for online broadcast messages, added db hits for getting friends, local server now instantiated on the window, now sending online broadcast messages when the local server starts 2019-01-31 10:24:34 +11:00
Scott Nonnenberg
813924685e Link Previews 2019-01-29 13:53:14 -08:00
Mikunj
1a15ec9c15 Merge commit signal/master into signal-1.20 2019-01-22 13:54:03 +11:00
Scott Nonnenberg
43e5d16020 Support for web socket communication with no signaling key 2019-01-14 10:32:12 -08:00
Scott Nonnenberg
47f834cf5c Encrypt device name on account create, on first launch if needed 2019-01-04 12:21:26 -08:00
Mikunj
654b0dac84 Merge signal-master. 2018-12-17 12:56:04 +11:00
sachaaaaa
f900fc496d
Merge pull request #61 from Mikunj/feature/profile-nickname
Added profile sharing and setting nicknames.
2018-11-29 15:59:53 +11:00
Beaudan
35c89ea4d9 Big refactor, prekeybundle moved back to a content message 2018-11-28 12:10:44 +11:00
Mikunj
aa57693fce Update profile if we get it through a message. 2018-11-28 10:31:11 +11:00
Scott Nonnenberg
79a861a870 Typing Indicators 2018-11-26 15:26:04 -08:00
Scott Nonnenberg
99252702e1 Support receiving multiple images in one messages 2018-11-26 15:26:04 -08:00
Beaudan
b65d6a6d2c Refactor friend request status to use a state enum variable 2018-11-26 11:28:43 +11:00
sachaaaaa
dbdd52b4eb
Merge pull request #50 from Mikunj/fix/friend-request
Friend request fixes
2018-11-22 16:06:41 +11:00
sachaaaaa
b5861a3f5c add PrekeyBundle Type field in SignalService.proto 2018-11-22 14:56:54 +11:00
Mikunj
db1145c0ce Fix handling empty content. 2018-11-21 15:37:19 +11:00
Mikunj
b21a7197f7 Fix preKeyBundle not sending. 2018-11-20 16:20:57 +11:00
Mikunj
1264630649 Attach preKeyBundle outside of the message content. 2018-11-20 14:23:06 +11:00
sachaaaaa
c605fff58d change FRIEND_REQUEST value to prevent clash with upstream 2018-11-13 12:18:37 +11:00
Mikunj
f589fdac5c Merge signal changes into branch. 2018-11-07 15:26:37 +11:00
Scott Nonnenberg
a7d78c0e9b Sealed Sender support
https://signal.org/blog/sealed-sender/
2018-10-29 14:49:18 -07:00
sachaaaaa
886f47b8e7
Prekeys sending: first pass (#12)
* add 'recipient' attribute in prekey database to allow binding a prekey to a recipient pub key

* Attach a PreKeyBundleMessage to the ContentMessage in fallback encryption mode

* Skip generating 100 prekeys upon registration

* Store the signed key signature in database
2018-10-18 12:12:44 +11:00
sachaaaaa
42e941531f Add fallback encryption (FallBackSessionCipher. simple DH) for when key bundle hasn't been received yet. Skip padding of bytes. 2018-10-05 13:15:49 +10:00
Scott Nonnenberg
9c399624cc Support for blocking groups on mobile, via group/blocked syncs 2018-09-14 16:25:43 -07:00
Scott Nonnenberg
3ea14ce450 Protos: Add color field to GroupDetails 2018-07-17 15:46:08 -07:00
Scott Nonnenberg
3ea3e4e256 Contact sharing: protos and data pipeline
As of this commit: 82b76ccf37
2018-05-07 19:09:55 -07:00
Daniel Gasienica
2810f26461 Remove unused WhisperTextProtocol.proto 2018-05-07 21:53:40 -04:00
Scott Nonnenberg
ad58799269
Update protos to reflect recent quotation-related updates
Updating to be current with these two comments in libsignal-service-java

2e4aa84896 (diff-c525e47fbed26da2110c8a7c37a37031)

4f07b9e85e (diff-c525e47fbed26da2110c8a7c37a37031)
2018-04-13 18:05:42 -07:00
Daniel Gasienica
b6ef67c402 Sync Protocol Buffers with libsignal-service-java (#2046)
Synchronizes our protocol buffers with `libsignal-service-java` project.

**Changes**
- [x] **BREAKING:** Rename `package` from `textsecure` to `signalservice`.
      ⚠️~~Workaround: Rename back to `textsecure`.~~
      Changed all protobuf `package` names across our project.
- [x] Rename `java_` metadata.
- [x] Move `NullMessage`, `ReceiptMessage`, and `Verified`.
- [x] Rename `Contacts.isComplete` to `Contacts.complete`. Confirmed to be
      unreferenced in our project.
- [x] Rename `Settings` to `Configuration` (`textsecure.protobuf.Settings` seems
      to be unused)
  - [x] Rename `libtextsecure` `MessageReceiver` `settings` event to
        `configuration`.
- [x] Rename `ReceiptMessage.timestamps` to `ReceiptMessage.timestamp`.
- [x] Add `AttachmentPointer` `width` and `height`.
- [x] Renamed `IncomingPushMessageSignal.proto` to `SignalService.proto` to
      match server.

---

commit 2b6aa19bf9ea5d8f2f4fd9e4102699a9d06a2b45
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Wed Feb 14 19:41:24 2018 -0500

    Rename protobuf `package`: `textsecure` --> `signalservice`

    Brings us closer to `libsignal-service-java`.

commit 91612880a5bf2c9ae8a9334877ac24e91102b905
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Wed Feb 14 19:19:35 2018 -0500

    Rename `SyncMessage.Settings` to `SyncMessage.Configuration`

commit 848eb9559928c54dffd3426bba8e7cd7b1687cdc
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Tue Feb 13 20:16:43 2018 -0500

    Rename `ReadReceipt` `timestamps` --> `timestamp`

commit 39859e64b41ddf41127b52d963fe7cc2b9fcad68
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Wed Feb 14 18:43:42 2018 -0500

    Rename `IncomingPushMessageSignal.proto` to `SignalService.proto`

    This matches the `libsignal-service-java` filename.

commit fd4bfd76af57ffa44178caf21d350cca211dc048
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Tue Feb 13 16:24:36 2018 -0500

    Revert protobuf `package` to `textsecure`

    This was a breaking change and would need to be introduced with additional
    changes.

commit 9f618fa91717a0349f1ea28bf6d365ef0a5c9ca5
Author: Daniel Gasienica <daniel@gasienica.ch>
Date:   Tue Feb 13 16:09:55 2018 -0500

    Sync service protocol buffers with Java project

    Snapshot: 4684a49b2e/protobuf/SignalService.proto
2018-02-15 15:06:14 -05:00
Scott Nonnenberg
72b7e4ec34
Process expireTimer and block status along with contact/group sync (#1980)
* Mark group as left = false if it is active in contact sync

* Handle expireTimer + blocked state along with contact/group sync
2018-01-29 18:14:39 -08:00
Lilia
52cc8355a6 Feature: Blue check marks for read messages if opted in (#1489)
* Refactor delivery receipt event handler

* Rename the delivery receipt event

For less ambiguity with read receipts.

* Rename synced read event

For less ambiguity with read receipts from other Signal users.

* Add support for incoming receipt messages

Handle ReceiptMessages, which may include encrypted delivery receipts or read
receipts from recipients of our sent messages.

// FREEBIE

* Rename ReadReceipts to ReadSyncs

* Render read messages with blue double checks

* Send read receipts to senders of incoming messages

// FREEBIE

* Move ReadSyncs to their own file

// FREEBIE

* Fixup old comments on read receipts (now read syncs)

And some variable renaming for extra clarity.

// FREEBIE

* Add global setting for read receipts

Don't send read receipt messages unless the setting is enabled.
Don't process read receipts if the setting is disabled.

// FREEBIE

* Sync read receipt setting from mobile

Toggling this setting on your mobile device should sync it to Desktop. When
linking, use the setting in the provisioning message.

// FREEBIE

* Send receipt messages silently

Avoid generating phantom messages on ios

// FREEBIE

* Save recipients on the outgoing message models

For accurate tracking and display of sent/delivered/read state, even if group
membership changes later.

// FREEBIE

* Fix conversation type in profile key update handling

// FREEBIE

* Set recipients on synced sent messages

* Render saved recipients in message detail if available

For older messages, where we did not save the intended set of recipients at the
time of sending, fall back to the current group membership.

// FREEBIE

* Record who has been successfully sent to

// FREEBIE

* Record who a message has been delivered to

* Invert the not-clickable class

* Fix readReceipt setting sync when linking

* Render per recipient sent/delivered/read status

In the message detail view for outgoing messages, render each recipient's
individual sent/delivered/read status with respect to this message, as long as
there are no errors associated with the recipient (ie, safety number changes,
user not registered, etc...) since the error icon is displayed in that case.

*Messages sent before this change may not have per-recipient status lists
and will simply show no status icon.

// FREEBIE

* Add configuration sync request

Send these requests in a one-off fashion when:
  1. We have just setup from a chrome app import
  2. We have just upgraded to read-receipt support

// FREEBIE

* Expose sendRequestConfigurationSyncMessage

// FREEBIE

* Fix handling of incoming delivery receipts - union with array

FREEBIE
2017-10-04 15:28:43 -07:00