Commit Graph

333 Commits (6821b789a4b43f1ac6b9fb929e636f5310079ad8)

Author SHA1 Message Date
Vincent 3140dee2b2 queue-utils 5 years ago
Vincent 83f70f1ff0 OpenGroup class and sending to Groups 5 years ago
Mikunj Varsani 542615961c
Merge pull request #1170 from Mikunj/message-sender-retry
Message sender retry
5 years ago
Mikunj 1c84fa6c02 Renamed retries to attempts 5 years ago
Mikunj 090f0e2c38 Add retrying and tests 5 years ago
Audric Ackermann f17ffd295a
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann 7a797737e0
rename SessionReset -> SessionRequest 5 years ago
Mikunj f279f47b35 Fix other declaration files 5 years ago
Audric Ackermann 2b58aff532
use pubkeys and toRawMessage() 5 years ago
Mikunj 653efaf9cf Fixed libsignal-protocol declaration 5 years ago
Audric Ackermann da1edab63d
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Mikunj e1dc190ebf Merge branch 'clearnet' into type-fixes 5 years ago
Mikunj Varsani 9b93e247eb
Merge pull request #1167 from Mikunj/message-sender-test
Added Message Sender tests
5 years ago
Vincent 2095c63a57 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-sending-rafactor__cache 5 years ago
Mikunj 9f27d62f76 Review fixes 5 years ago
Audric Ackermann 7031328eea
remove useless hasSession test 5 years ago
Vincent 20b193b1f6 rm protocol stub 5 years ago
Mikunj 4a5146025b Fix job queue test. 5 years ago
Mikunj 9b855a11e1 Added MessageSender tests 5 years ago
Audric Ackermann b9aa0ad8d5
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann dc00923f17
add SessionProtocol test 5 years ago
Mikunj e9983099a9 Fix tests 5 years ago
Vincent 728b43be9e cache-pull-from-db-finish 5 years ago
Vincent a2844b48f4 linted 5 years ago
Vincent 3a617934e2 Finalized cache 5 years ago
Vincent b203dc4493 Finalized cache 5 years ago
Mikunj 41fa167e79 Improve typings for LibsignalProtocol 5 years ago
Vincent afcbf7049e linted 5 years ago
Vincent bbfa6499e0 Stubbed cache 5 years ago
Vincent fb4c6fb387 testing stubs 5 years ago
Audric Ackermann 1c570e1c2f
Merge branch 'message-sending-refactor' of github.com:loki-project/loki-messenger into message-sending-refactor 5 years ago
Vincent b8ec9bd995 Typify PubKey 5 years ago
Vincent 372754e360 Pulled from audric 5 years ago
Vincent a9d9303449 Prep for pull 5 years ago
Vincent a5cfbd584b linted 5 years ago
Vincent 4fd19126ec pulled from clearnet reversion 5 years ago
Mikunj Varsani 89c16b19b6 Merge pull request #1153 from Mikunj/message-encrypter
Message encrypter
5 years ago
Vincent dec7aa10c8 Revert pulls 5 years ago
Mikunj 863c6da772 Add util to wrap window stubs 5 years ago
Mikunj 21e2469b75 Add more tests 5 years ago
Mikunj 4704893649 Refactor 5 years ago
Mikunj 2e02e7d67b Linting 5 years ago
Mikunj cd58e9b86e Add utils for stubbing.
Added ImportMock for easier es6 stubbing.
5 years ago
Audric Ackermann 935ac8d8f9
lint 5 years ago
Audric Ackermann 1dec669d11
make sessionProtoco read and write to db 5 years ago
Audric Ackermann bfade45b00
add start of SessionProtocol 5 years ago
Mikunj 736cbc06da Add tests 5 years ago
Audric Ackermann 6faa764419
lint 5 years ago
Audric Ackermann ee6ee7ec4f
Merge remote-tracking branch 'upstream/message-sending-refactor' into audric/refactor-message-sending 5 years ago
Audric Ackermann 77552aa3b7
use toNumber from lodash to make testing of Long cleaner 5 years ago
Audric Ackermann fa853538d0
LINT after prettier upgrade 5 years ago
Audric Ackermann 9fd929e812
lint 5 years ago
Audric Ackermann 3840d061c3
add test for closed group chat 5 years ago
Audric Ackermann 934838cc1c
add tests for opengroup message 5 years ago
Audric Ackermann 113cf8713b
remove Content.toObject() from tests and update them 5 years ago
Audric Ackermann 73dbcd890b
add test for ChatMessage 5 years ago
Audric Ackermann d1da0e581e
test message check for identifier set 5 years ago
Audric Ackermann e345f6a39f
fix typingMessage test 5 years ago
Audric Ackermann da8999263b
make identifier a uuid 5 years ago
Audric Ackermann 2acba52933
use undefined or ? rather than null 5 years ago
Audric Ackermann 7191038f21
add SessioNEstablishedMessage and tests 5 years ago
Audric Ackermann 46a48406c7
add EndSession and SessionReset messages & tests 5 years ago
Audric Ackermann 4d6ceac0f2
typo 5 years ago
Audric Ackermann 823bc4216e
ReceiptMessage test: toNumber() for long values 5 years ago
Audric Ackermann 9ea95e59fa
add GroupInvitationMessage and tests 5 years ago
Audric Ackermann 56d744fda9
add TypingMessage and tests 5 years ago
Audric Ackermann fa26ff9e32
pass args by {} and add deviceLink tests 5 years ago
Audric Ackermann f1244f3031
add device unlink and receiptMessage class and tests 5 years ago
Mikunj 21586f8e14 Linting + Improve tslint rules in tests 5 years ago
Mikunj 956dea8a1f Use correcy syntax for async asserts 5 years ago
Mikunj 6557d7bcb3 Updated JobQueue tests 5 years ago
Mikunj 3dfc1ca213 Improved JobQueue.
Added tests.
5 years ago
Audric Ackermann e45ef6f291
add test for unpairing request message 5 years ago
Vincent 7d803280e8 halfway 5 years ago
Vincent 2b7df8e40b Filtering groups fromstate 5 years ago
Ryan Tharp 178d788dca Enable auto-updating using electron-updater 5 years ago
Audric Ackermann 319fcb6a6d rename saved attachment to session-... rather than signal- 5 years ago
Maxim Shishmarev 8be1c61f4c Highlight conversations with unread mentions of the user 6 years ago
Mikunj a8a959b326 Merge branch 'development' into signal-1.24 6 years ago
sachaaaaa ce4105f529 Fix node tests 6 years ago
Mikunj 8808100796 Merge signal-1.24.0
# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	background.html
#	config/default.json
#	config/production.json
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_view.js
#	js/views/inbox_view.js
#	js/views/settings_view.js
#	main.js
#	package.json
#	test/index.html
#	ts/components/conversation/ContactName.tsx
#	yarn.lock
6 years ago
Mikunj 1f03e04d8c Merge commit 'c75a756b2a58bd4a79890e34673d95d9f17f3f01' into signal-1.23
# Conflicts:
#	js/views/conversation_view.js
#	package.json
#	ts/components/ConversationListItem.tsx
#	ts/components/conversation/ConversationHeader.tsx
6 years ago
Mikunj 12ce0140de Left pane changes.
Merge commit 'b3ac1373fa64117fe2a9ccfddf3712f1826c06d9' into signal-1.23

# Conflicts:
#	_locales/en/messages.json
#	background.html
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_list_item_view.js
#	js/views/conversation_list_view.js
#	js/views/conversation_search_view.js
#	js/views/inbox_view.js
#	libtextsecure/account_manager.js
#	package.json
#	stylesheets/_global.scss
#	stylesheets/_index.scss
#	stylesheets/_modules.scss
#	test/_test.js
#	test/index.html
#	test/models/conversations_test.js
#	test/views/conversation_search_view_test.js
#	ts/components/ConversationListItem.tsx
#	ts/components/MainHeader.tsx
#	ts/components/conversation/ConversationHeader.tsx
#	ts/components/conversation/ResetSessionNotification.tsx
6 years ago
Mikunj 48c4ed1a29 Partial Merge commit 'bf904ddd129ceba8fa363ccf6d10ecd256c65f63' into signal-1.23
# Conflicts:
#	_locales/en/messages.json
#	app/sql.js
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/views/inbox_view.js
#	main.js
6 years ago
Mikunj e343a04eea Merge commit '18b5b7c046436f2defab2e20407e22da180bf97b' into signal-1.22
# Conflicts:
#	app/sql.js
#	background.html
#	config/default.json
#	js/background.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/modules/data.js
#	js/signal_protocol_store.js
#	js/views/conversation_search_view.js
#	libtextsecure/message_receiver.js
#	libtextsecure/sendmessage.js
#	main.js
#	package.json
#	preload.js
#	test/index.html
#	ts/components/Avatar.tsx
#	ts/components/conversation/ConversationHeader.md
#	ts/components/conversation/ConversationHeader.tsx
6 years ago
Scott Nonnenberg 22f7a352f9 updateLastMessage: If we don't update last text, clear it 6 years ago
Derek Meer 7727dc093e Hides the "Hide menu bar" option on MacOS (#2903)
The "Hide menu bar" option is only applicable to Windows and some Linux distros,
where the menu bar is attached to the Signal window. Therefore, this commit
ensures that it doesn't show up on MacOS. It includes a setting,
isHideMenuBarSupported(), to control the option's appearance. This
commit also includes the tests to make sure isHideMenuBarSupported()
works correctly.

Fixes #2705
6 years ago
Scott Nonnenberg c8ea2e9463 Download and install updates without the help of electron-updater 6 years ago
Scott Nonnenberg a2fca80759 Conversation.updateLastMessage: Properly clear timestamp/status 6 years ago
Scott Nonnenberg b3ac1373fa Move left pane entirely to React 6 years ago
Scott Nonnenberg bf904ddd12 On attachment save include date, include album index 6 years ago
Scott Nonnenberg 6ffbc0ac06 Archive Conversation 6 years ago
Scott Nonnenberg 1d2c3ae23c Download attachments in separate queue from message processing 6 years ago
Mikunj 6bd2d3962e Linted files 6 years ago
Beaudan 6863f7e51a Small fix for strange bug where timezone would be different in the past for regular user vs sudo 6 years ago
Mikunj 654b0dac84 Merge signal-master. 6 years ago
Beaudan eb7a0dbb3a Fix failing tests except for problematic spellcheck package 6 years ago
Scott Nonnenberg 99252702e1 Support receiving multiple images in one messages 6 years ago
Scott Nonnenberg bc0ec92ad2 Tests and increase consistency for isFileDangerous calls 7 years ago
Scott Nonnenberg 643739f65d
Responding to feedback on the updated visuals (#2549)
* Conversation List Item: timestamp bold only when convo has unread

* Preserve the positioning of overlays on re-entry into convo

* ConversationListItem: Handle missing and broken thumbnails

* Shorten timestamp in left pane for better Android consistency

* Update convo last updated if last was expire timer change

But not if it was from a sync instead of from you or from a contact.

* Make links in quotes the same color as the text

* MediaGridItem: Update placeholder icon colors for dark theme

* Ensure turning off timer shows 'Timer set to off' in left pane

* ConversationListItem: Show unread count in blue circle

* Add one pixel margin to blue indicator for text alignment

* Ensure replies to voice message can bet sent successfully
7 years ago
Scott Nonnenberg 675e34fc8d New React component: ConversationListItem, installed in left pane
When collecting a conversation's last message, we grab that message's
status as well (if outgoing) and show it.
7 years ago
Scott Nonnenberg 34f423b52c Remove unused code; move signal.js to js/modules for eslint
(noticed as I was doing this that signal.js doesn't get eslint coverage)
7 years ago
Scott Nonnenberg 2988da0981 Turn on all of Microsoft's recommend lint rules
Biggest changes forced by this: alt tags for all images, resulting in
new strings added to messages.json, and a new i18n paramter/prop added
in a plot of places.

Another change of note is that there are two new tslint.json files under
ts/test and ts/styleguide to relax our rules a bit there. This required
a change to our package.json script, as manually specifying the config
file there made it ignore our tslint.json files in subdirectories
7 years ago
Scott Nonnenberg 8cb1f1f532 Fall back on givenName/familyName if no displayName/organization 7 years ago
Daniel Gasienica 16bc1d34c6 Message schema 6: Change classification of media and documents
For an easier implementation, we change our original definition of
`initializeAttachmentMetadata`. This means we have to re-run it marked as
version 6 and mark schema version 5 as deprecated as its definition has changed.
7 years ago
Daniel Gasienica 63bd9dcc61 Add tests for `Attachment.isVisualMedia` 7 years ago
Daniel Gasienica 53918d68de Add `Attachment.isFile` definition 7 years ago
Daniel Gasienica 15759f0db5 Normalize package naming 7 years ago
Daniel Gasienica 5789b3eb75 Add `Attachment.isVoiceMessage` 7 years ago
Daniel Gasienica fa4c3fda2b Extract common MIME types 7 years ago
Daniel Gasienica 5d230d3778 Add `Settings.isNotificationGroupingSupported`
See: https://github.com/electron/electron/issues/11189
7 years ago
Daniel Gasienica ecf23b6b2e Disable audio notifications on Windows 7 and lower 7 years ago
Daniel Gasienica a102016ed8 Port `Settings` and `OS` to TypeScript 7 years ago
Daniel Gasienica 87d374ea78 Remove `@prettier` pragmas 7 years ago
Daniel Gasienica 1dd87ad197 Format all source code using Prettier 7 years ago
Daniel Gasienica b74b761255 Implement click to save for document list 7 years ago
Daniel Gasienica 4a5e61eaf4 Implement `Attachment.save` 7 years ago
Daniel Gasienica f36f206a01 Use `IndexablePresence` for `hasFileAttachments` and `hasVisualMediaAttachments`
Reduces index size, makes it easier to debug using IndexedDB inspector, and
hopefully improves lookup performance.
7 years ago
Daniel Gasienica fca8de16c8 Add required `Message.id: string` 7 years ago
Daniel Gasienica 8b9516de72 Update test for attachment metadata 7 years ago
Daniel Gasienica 45d89d1e44 Create `UserMessage` type
Describes user visible messages that can have attachments.
7 years ago
Daniel Gasienica 648a7ab1bb Autoformat using Prettier 7 years ago
Daniel Gasienica 9d84b2f420 Index messages with attachments using a boolean
When indexing message attachment metadata using numeric indexes such as:

```javascript
{
  conversationId: '+12223334455',
  received_at: 123,
  attachments: […],
  numAttachments: 2,
},
{
  conversationId: '+12223334455',
  received_at: 456,
  attachments: [],
  numAttachments: 0,
}
{
  conversationId: '+12223334455',
  received_at: 789,
  attachments: [],
  numAttachments: 1,
}
```

It creates an index as follows:

```
[conversationId, received_at, numAttachments]
['+12223334455', 123, 2]
['+12223334455', 456, 0]
['+12223334455', 789, 1]
```

This means a query such as…

```
lowerBound: ['+12223334455', 0,                1               ]
upperBound: ['+12223334455', Number.MAX_VALUE, Number.MAX_VALUE]
```

…will return all three original entries because they span the `received_at`
from `0` through `Number.MAX_VALUE`. One workaround is to index booleans using
`1 | undefined` where `1` is included in the index and `undefined` is not, but
that way we lose the ability to query for the `false` value. Instead, we flip
adjust the index to `[conversationId, hasAttachments, received_at]` and can
then query messages with attachments using

```
[conversationId, 1 /* hasAttachments */, 0                /* received_at */]
[conversationId, 1 /* hasAttachments */, Number.MAX_VALUE /* received_at */]
```
7 years ago
Daniel Gasienica b0fefdbb98 Implementing grouping messages by date 7 years ago
Daniel Gasienica 424965f876 🎨 Autoformat code 7 years ago
Daniel Gasienica 3d70e46aea Calculate dates in UTC 7 years ago
Daniel Gasienica e34347f290 Add `groupMessagesByDate` 7 years ago
Daniel Gasienica 94ef3bab80 Move test file 7 years ago
Daniel Gasienica 44debd123d Add basic implementation of `Conversation.updateFromLastMessage` 7 years ago
Daniel Gasienica 55fc21505e Rename `ts/test` to `ts/styleguide` 7 years ago
Scott Nonnenberg 96bd90a4e0
Simplify assignment; add warning to preload.js about Style Guide 7 years ago
Scott Nonnenberg 05303233fb
window.Signal.React -> window.Signal.Components 7 years ago
Scott Nonnenberg 23537546fe
Big refactor: ts/ directory for all typescript, including react
Split out test-specific and general utility react components too.

And moved our test/legacy* files for the Style Guide into a styleguide/
subdirectory of test/.

I think we'll be able to live in this directory structure for a while.
7 years ago