Audric Ackermann
e24fc12b93
fix sender_keys itest
5 years ago
Mikunj
49b994367d
Remove multi device data.
...
Force wipe secondary devices.
5 years ago
Audric Ackermann
10ea59246f
add back closed group tests
5 years ago
Audric Ackermann
878619a0bc
move integration tests to _itest.ts suffix
5 years ago
Audric Ackermann
38b9736314
skip linking test integration test
5 years ago
Audric Ackermann
933eb73aa1
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests
5 years ago
Audric Ackermann
80b0821781
move unit tests to sub folder
5 years ago
Audric Ackermann
c12c3b5f64
move stub of integration tests to typescript
5 years ago
Audric Ackermann
6d65c9cc0a
make sendMessage return -1 on fail rather than false
5 years ago
Audric Ackermann
2637981fdb
fix tests
5 years ago
Audric Ackermann
44349079ab
fix delete of open group messages
5 years ago
Audric Ackermann
fec0ead1de
fix link device test and lint
5 years ago
Audric Ackermann
e2a42d1b61
add stubbing of messageQueue in window from ts tests
5 years ago
Maxim Shishmarev
d95dfdc04a
Merge pull request #1280 from msgmaxim/medium-group-fixes
...
Medium group protocol changes
5 years ago
Audric Ackermann
720bb54bc1
move add_contacts_test open_group_test and registration_test to ts
5 years ago
Audric Ackermann
a983085cbd
move page-objects to .ts files
5 years ago
Audric Ackermann
394030b711
remove getDefaultTTL and use Constants values instead
5 years ago
Maxim Shishmarev
cc43555cd2
Merge branch 'clearnet' into medium-group-fixes
5 years ago
Maxim Shishmarev
87144336b7
Large refactor of medium groups. Fixes them for multidevice
5 years ago
Audric Ackermann
1b35f132e3
fix test
5 years ago
Vincent
9d6a24d802
rm-uipolishmergre
5 years ago
Vincent
7896671df0
fixup-tests
5 years ago
Vincent
5216cc2c2e
merge clearnet
5 years ago
Vincent
c020eddef6
constants-to-ts
5 years ago
Maxim Shishmarev
c843da0e94
Merge pull request #1238 from msgmaxim/revive-medium-groups
...
Fix medium group sending for single device users; protocol changes
5 years ago
Maxim Shishmarev
9b2f11b860
Use stub instead of replace
5 years ago
Audric Ackermann
53433261d9
remove outgoing_message.js and everything related to it
5 years ago
Maxim Shishmarev
3faa4f71f3
Fix unit tests
5 years ago
Vincent
fd746a475a
ui polished and ttl constants
5 years ago
Vincent
9b07c8fc8e
outline-class
5 years ago
Vincent
ca96992a44
Pukbeyified
5 years ago
Vincent
68f2a90f7c
pubkeys-in-message-encryptor-init
5 years ago
Mikunj
646973e330
Made changes to how messages are sent.
...
Instead of blocking the message queue when we don't have a session, we instead just send out a session request and send the queued messages using fallback encryption.
This means that users will be able to message right away without having to wait.
The only down side is that all messages sent before sessions are established will be using the weaker encryption.
This change also means we have to detach session requests from envelope type (which is a good thing) and thus now a message is a session request if it contains a preKeyBundle.
5 years ago
Audric Ackermann
b502fcc3f9
clean code and add comments
5 years ago
Mikunj Varsani
f11e0f2cd0
Merge pull request #1222 from Mikunj/blocking
...
Fix up Blocking
5 years ago
Mikunj
f008a8b3ef
Always block the primary device instead of all devices.
...
Added isBlockedAsync function.
5 years ago
Mikunj
95f1e34b6b
Update tests
5 years ago
Mikunj
8c3943094d
Add tests
5 years ago
Vincent
5a2b91d572
Merge branch 'various-closed-group-fixes' of https://github.com/Bilb/loki-messenger into closed-group-fixes
5 years ago
Mikunj
2ff177d814
Fix promise test
5 years ago
Audric Ackermann
14894a916e
fix device mapping upload format
5 years ago
Vincent
e4cf21b2de
ConversationAttributes typofix
5 years ago
Vincent
7498a255a2
utils compatiblity merger
5 years ago
Mikunj
a972c328c7
Change how sync messages are handled
5 years ago
Mikunj
fbbbadada5
Merge branch 'clearnet' into attachments
5 years ago
Vincent
2d0409f9c8
Merge branch 'gorup-tests' into utils-tests
5 years ago
Vincent
e2e867d5c1
Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests
5 years ago
Vincent
a6433fe5dd
merge
5 years ago
Vincent
a62a19145c
group-tests
5 years ago
Vincent
5d8f9cf950
stratify-utils
5 years ago
Mikunj
13811233b6
Add session request expiry checks
5 years ago
Vincent
c3af41cb80
merge
5 years ago
Vincent
f4fdd42ef3
string-tests
5 years ago
Mikunj
b69ad7db16
Add attachment util
5 years ago
Vincent
32015eeab6
ptests
5 years ago
Mikunj Varsani
006b5760c6
Merge pull request #1192 from Mikunj/send-to-group
...
Handle typing and expiration messages when sending to group
5 years ago
Mikunj
c2c56bb9b0
Handle typing and expiration messages when sending to group
5 years ago
Mikunj
d4ea483aa0
Filter invalid authorisations from the file server
5 years ago
vincent
152adbf4d5
syncMessage done
5 years ago
Audric Ackermann
0668798b72
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending
5 years ago
Vincent
f72423c2ba
types-etc
5 years ago
Audric Ackermann
cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending
5 years ago
Mikunj
4d0d2727bd
Added strict type checking to group id
5 years ago
Vincent
78b1ef4805
rm-electron-test
5 years ago
Vincent
aa6ce0787b
with-electron?
5 years ago
Mikunj
b85348569b
Merge branch 'clearnet' into folder-restructure
5 years ago
Mikunj
8f492f8e74
Review changes
5 years ago
Vincent
65148300e7
from-to-toSyncMessage
5 years ago
Vincent
58ab611c9e
pulled
5 years ago
Mikunj
3bf5796cd5
Modify periodic check implementation
5 years ago
Mikunj
d862269f8d
Update tests
5 years ago
Audric Ackermann
439ea09027
lint
5 years ago
Audric Ackermann
9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending
5 years ago
Mikunj
cbc3518f04
Fixed file structure of test utils
5 years ago
Audric Ackermann
d946678d59
fix encryption type for rawMessage
5 years ago
Vince
fe7aaa0aaa
Merge pull request #1177 from vincentbavitz/message-queue-test
...
Message Queue Tests
5 years ago
Vincent
40368793fd
rm-redundant-files
5 years ago
Vincent
99674ed2ba
Fixup PubKey.isEqual
5 years ago
Vincent
20b2ba1c8a
generateMemberList-compactify
5 years ago
Vincent
18af13d7d9
merge-fixups
5 years ago
Mikunj
3f93b25ac2
Added string utils
5 years ago
Vincent
42a788c8e3
Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-queue-test
5 years ago
Vincent
0b623aa198
revert-tick-on-events
5 years ago
Vincent
2c2ed1b274
review-fixes
5 years ago
Vincent
211d4e1551
improve sendToGroup
5 years ago
Vincent
2edda7c9e5
hasSession checl
5 years ago
Vincent
3fa9eed90b
stuck-w-events
5 years ago
Mikunj
0933cf8b02
Added multi device protocol tests
5 years ago
Vincent
33488a9520
final
5 years ago
Vincent
94f0fbb65a
params-check
5 years ago
Vincent
ac2bb65c2a
isEqual on ChatMessages
5 years ago
Vincent
e98f509304
resolves-on-ression-reset
5 years ago
Vincent
fde52e7b7f
splitting
5 years ago
Mikunj
93c19395c1
Change back to old window syntax and allow stubbing of it
5 years ago
Vincent
dbc44cb78b
Merge branch 'open-group-class' into message-queue-test
5 years ago
Vincent
e9cc824b0b
open groups
5 years ago
Vincent
6afddf38df
finalise
5 years ago
Vincent
ae8226597b
prototyped-stub
5 years ago
Vincent
73d44d60cf
mostly-tests
5 years ago
Vincent
8417e3660d
fixup-review
5 years ago
Vincent
2be1c2fd94
groups-test
5 years ago
Vincent
bffb43dd19
review-fixes
5 years ago
Vincent
119ab83e85
tests-init
5 years ago
Vincent
48e3ded9d2
review changes
5 years ago
Vincent
e09372eacf
tightening up queue
5 years ago
Audric Ackermann
38f64cf172
Merge pull request #1172 from Bilb/message-sending-refactor
5 years ago
Vincent
00122333ff
opengroupmessage
5 years ago
Vincent
6c35f3c773
optimized OpenGroup
5 years ago
Audric Ackermann
d1518f8233
add new handling of session request message
5 years ago
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