dc00923f17 
								
									
								
							
								 
							
						 
						
							
							
								
								add SessionProtocol test  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								e9983099a9 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								728b43be9e 
								
							
								 
							
						 
						
							
							
								
								cache-pull-from-db-finish  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								a2844b48f4 
								
							
								 
							
						 
						
							
							
								
								linted  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								3a617934e2 
								
							
								 
							
						 
						
							
							
								
								Finalized cache  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								b203dc4493 
								
							
								 
							
						 
						
							
							
								
								Finalized cache  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								41fa167e79 
								
							
								 
							
						 
						
							
							
								
								Improve typings for LibsignalProtocol  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								afcbf7049e 
								
							
								 
							
						 
						
							
							
								
								linted  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								bbfa6499e0 
								
							
								 
							
						 
						
							
							
								
								Stubbed cache  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								fb4c6fb387 
								
							
								 
							
						 
						
							
							
								
								testing stubs  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								1c570e1c2f 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'message-sending-refactor' of github.com:loki-project/loki-messenger into message-sending-refactor  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								b8ec9bd995 
								
							
								 
							
						 
						
							
							
								
								Typify PubKey  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								372754e360 
								
							
								 
							
						 
						
							
							
								
								Pulled from audric  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								a9d9303449 
								
							
								 
							
						 
						
							
							
								
								Prep for pull  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								a5cfbd584b 
								
							
								 
							
						 
						
							
							
								
								linted  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								4fd19126ec 
								
							
								 
							
						 
						
							
							
								
								pulled from clearnet reversion  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								89c16b19b6 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1153  from Mikunj/message-encrypter  
							
							... 
							
							
							
							Message encrypter 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								dec7aa10c8 
								
							
								 
							
						 
						
							
							
								
								Revert pulls  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								863c6da772 
								
							
								 
							
						 
						
							
							
								
								Add util to wrap window stubs  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								21e2469b75 
								
							
								 
							
						 
						
							
							
								
								Add more tests  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								4704893649 
								
							
								 
							
						 
						
							
							
								
								Refactor  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								2e02e7d67b 
								
							
								 
							
						 
						
							
							
								
								Linting  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								cd58e9b86e 
								
							
								 
							
						 
						
							
							
								
								Add utils for stubbing.  
							
							... 
							
							
							
							Added ImportMock for easier es6 stubbing. 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								935ac8d8f9 
								
									
								
							
								 
							
						 
						
							
							
								
								lint  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								1dec669d11 
								
									
								
							
								 
							
						 
						
							
							
								
								make sessionProtoco read and write to db  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								bfade45b00 
								
									
								
							
								 
							
						 
						
							
							
								
								add start of SessionProtocol  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								736cbc06da 
								
							
								 
							
						 
						
							
							
								
								Add tests  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								6faa764419 
								
									
								
							
								 
							
						 
						
							
							
								
								lint  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								ee6ee7ec4f 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/message-sending-refactor' into audric/refactor-message-sending  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								77552aa3b7 
								
									
								
							
								 
							
						 
						
							
							
								
								use toNumber from lodash to make testing of Long cleaner  
							
							
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								fa853538d0 
								
									
								
							
								 
							
						 
						
							
							
								
								LINT after prettier upgrade  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								9fd929e812 
								
									
								
							
								 
							
						 
						
							
							
								
								lint  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								3840d061c3 
								
									
								
							
								 
							
						 
						
							
							
								
								add test for closed group chat  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								934838cc1c 
								
									
								
							
								 
							
						 
						
							
							
								
								add tests for opengroup message  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								113cf8713b 
								
									
								
							
								 
							
						 
						
							
							
								
								remove Content.toObject() from tests and update them  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								73dbcd890b 
								
									
								
							
								 
							
						 
						
							
							
								
								add test for ChatMessage  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								d1da0e581e 
								
									
								
							
								 
							
						 
						
							
							
								
								test message check for identifier set  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								e345f6a39f 
								
									
								
							
								 
							
						 
						
							
							
								
								fix typingMessage test  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								da8999263b 
								
									
								
							
								 
							
						 
						
							
							
								
								make identifier a uuid  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								2acba52933 
								
									
								
							
								 
							
						 
						
							
							
								
								use undefined or ? rather than null  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								7191038f21 
								
									
								
							
								 
							
						 
						
							
							
								
								add SessioNEstablishedMessage and tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								46a48406c7 
								
									
								
							
								 
							
						 
						
							
							
								
								add EndSession and SessionReset messages & tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								4d6ceac0f2 
								
									
								
							
								 
							
						 
						
							
							
								
								typo  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								823bc4216e 
								
									
								
							
								 
							
						 
						
							
							
								
								ReceiptMessage test: toNumber() for long values  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								9ea95e59fa 
								
									
								
							
								 
							
						 
						
							
							
								
								add GroupInvitationMessage and tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								56d744fda9 
								
									
								
							
								 
							
						 
						
							
							
								
								add TypingMessage and tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								fa26ff9e32 
								
									
								
							
								 
							
						 
						
							
							
								
								pass args by {} and add deviceLink tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								f1244f3031 
								
									
								
							
								 
							
						 
						
							
							
								
								add device unlink and receiptMessage class and tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								21586f8e14 
								
							
								 
							
						 
						
							
							
								
								Linting + Improve tslint rules in tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								956dea8a1f 
								
							
								 
							
						 
						
							
							
								
								Use correcy syntax for async asserts  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								6557d7bcb3 
								
							
								 
							
						 
						
							
							
								
								Updated JobQueue tests  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								3dfc1ca213 
								
							
								 
							
						 
						
							
							
								
								Improved JobQueue.  
							
							... 
							
							
							
							Added tests. 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								e45ef6f291 
								
									
								
							
								 
							
						 
						
							
							
								
								add test for unpairing request message  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								7d803280e8 
								
							
								 
							
						 
						
							
							
								
								halfway  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								2b7df8e40b 
								
							
								 
							
						 
						
							
							
								
								Filtering groups fromstate  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								178d788dca 
								
							
								 
							
						 
						
							
							
								
								Enable auto-updating using electron-updater  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								319fcb6a6d 
								
							
								 
							
						 
						
							
							
								
								rename saved attachment to session-... rather than signal-  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								8be1c61f4c 
								
							
								 
							
						 
						
							
							
								
								Highlight conversations with unread mentions of the user  
							
							
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								a8a959b326 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'development' into signal-1.24  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								ce4105f529 
								
							
								 
							
						 
						
							
							
								
								Fix node tests  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								22f7a352f9 
								
							
								 
							
						 
						
							
							
								
								updateLastMessage: If we don't update last text, clear it  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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  
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								c8ea2e9463 
								
							
								 
							
						 
						
							
							
								
								Download and install updates without the help of electron-updater  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								a2fca80759 
								
							
								 
							
						 
						
							
							
								
								Conversation.updateLastMessage: Properly clear timestamp/status  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								b3ac1373fa 
								
							
								 
							
						 
						
							
							
								
								Move left pane entirely to React  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								bf904ddd12 
								
							
								 
							
						 
						
							
							
								
								On attachment save include date, include album index  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								6ffbc0ac06 
								
							
								 
							
						 
						
							
							
								
								Archive Conversation  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								1d2c3ae23c 
								
							
								 
							
						 
						
							
							
								
								Download attachments in separate queue from message processing  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								6bd2d3962e 
								
							
								 
							
						 
						
							
							
								
								Linted files  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								6863f7e51a 
								
							
								 
							
						 
						
							
							
								
								Small fix for strange bug where timezone would be different in the past for regular user vs sudo  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								654b0dac84 
								
							
								 
							
						 
						
							
							
								
								Merge signal-master.  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								eb7a0dbb3a 
								
							
								 
							
						 
						
							
							
								
								Fix failing tests except for problematic spellcheck package  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								99252702e1 
								
							
								 
							
						 
						
							
							
								
								Support receiving multiple images in one messages  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								bc0ec92ad2 
								
							
								 
							
						 
						
							
							
								
								Tests and increase consistency for isFileDangerous calls  
							
							
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								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) 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								8cb1f1f532 
								
							
								 
							
						 
						
							
							
								
								Fall back on givenName/familyName if no displayName/organization  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								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. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								63bd9dcc61 
								
							
								 
							
						 
						
							
							
								
								Add tests for `Attachment.isVisualMedia`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								53918d68de 
								
							
								 
							
						 
						
							
							
								
								Add `Attachment.isFile` definition  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								15759f0db5 
								
							
								 
							
						 
						
							
							
								
								Normalize package naming  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								5789b3eb75 
								
							
								 
							
						 
						
							
							
								
								Add `Attachment.isVoiceMessage`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								fa4c3fda2b 
								
							
								 
							
						 
						
							
							
								
								Extract common MIME types  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								5d230d3778 
								
							
								 
							
						 
						
							
							
								
								Add `Settings.isNotificationGroupingSupported`  
							
							... 
							
							
							
							See: https://github.com/electron/electron/issues/11189  
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								ecf23b6b2e 
								
							
								 
							
						 
						
							
							
								
								Disable audio notifications on Windows 7 and lower  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								a102016ed8 
								
							
								 
							
						 
						
							
							
								
								Port `Settings` and `OS` to TypeScript  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								87d374ea78 
								
							
								 
							
						 
						
							
							
								
								Remove `@prettier` pragmas  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								1dd87ad197 
								
							
								 
							
						 
						
							
							
								
								Format all source code using Prettier  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								b74b761255 
								
							
								 
							
						 
						
							
							
								
								Implement click to save for document list  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								4a5e61eaf4 
								
							
								 
							
						 
						
							
							
								
								Implement `Attachment.save`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								f36f206a01 
								
							
								 
							
						 
						
							
							
								
								Use `IndexablePresence` for `hasFileAttachments` and `hasVisualMediaAttachments`  
							
							... 
							
							
							
							Reduces index size, makes it easier to debug using IndexedDB inspector, and
hopefully improves lookup performance. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								fca8de16c8 
								
							
								 
							
						 
						
							
							
								
								Add required `Message.id: string`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								8b9516de72 
								
							
								 
							
						 
						
							
							
								
								Update test for attachment metadata  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								45d89d1e44 
								
							
								 
							
						 
						
							
							
								
								Create `UserMessage` type  
							
							... 
							
							
							
							Describes user visible messages that can have attachments. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								648a7ab1bb 
								
							
								 
							
						 
						
							
							
								
								Autoformat using Prettier  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								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 */]
``` 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								b0fefdbb98 
								
							
								 
							
						 
						
							
							
								
								Implementing grouping messages by date  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								424965f876 
								
							
								 
							
						 
						
							
							
								
								🎨  Autoformat code  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								3d70e46aea 
								
							
								 
							
						 
						
							
							
								
								Calculate dates in UTC  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								e34347f290 
								
							
								 
							
						 
						
							
							
								
								Add `groupMessagesByDate`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								94ef3bab80 
								
							
								 
							
						 
						
							
							
								
								Move test file  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								44debd123d 
								
							
								 
							
						 
						
							
							
								
								Add basic implementation of `Conversation.updateFromLastMessage`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								55fc21505e 
								
							
								 
							
						 
						
							
							
								
								Rename `ts/test` to `ts/styleguide`  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								96bd90a4e0 
								
									
								
							
								 
							
						 
						
							
							
								
								Simplify assignment; add warning to preload.js about Style Guide  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								05303233fb 
								
									
								
							
								 
							
						 
						
							
							
								
								window.Signal.React -> window.Signal.Components  
							
							
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								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. 
							
						 
						
							8 years ago