43d5b1c523 
								
							 
						 
						
							
							
								
								fix: Add missing calcDisplayname global rules to client constructor  
							
							... 
							
							
							
							This two parameters were
already documented but
were missing in the
constructor. They can
also be final. 
							
						 
						
							2021-12-03 12:34:52 +01:00  
				
					
						
							
							
								 
						
							
								4ebf5b2553 
								
							 
						 
						
							
							
								
								Merge branch 'voip/add-voip-function' of  https://gitlab.com/famedly/company/frontend/famedlysdk  into voip/add-voip-function  
							
							
							
						 
						
							2021-12-02 23:20:16 +08:00  
				
					
						
							
							
								 
						
							
								61da76a26a 
								
							 
						 
						
							
							
								
								chore: Implement the onAnsweredElsewhere function.  
							
							
							
						 
						
							2021-12-02 23:18:01 +08:00  
				
					
						
							
							
								 
						
							
								e5c8e4f4fe 
								
							 
						 
						
							
							
								
								chore: Time unit replacement.  
							
							
							
						 
						
							2021-12-02 15:12:59 +00:00  
				
					
						
							
							
								 
						
							
								9bc35a216a 
								
							 
						 
						
							
							
								
								chore: Use `fireCallEvent` instead of emit.  
							
							
							
						 
						
							2021-12-02 23:04:33 +08:00  
				
					
						
							
							
								 
						
							
								1f519703a8 
								
							 
						 
						
							
							
								
								fix: Fix the call function in flutter and dart.  
							
							
							
						 
						
							2021-12-01 00:47:11 +08:00  
				
					
						
							
							
								 
						
							
								7efe123274 
								
							 
						 
						
							
							
								
								Merge branch 'main' into voip/add-voip-function  
							
							
							
						 
						
							2021-11-30 22:31:10 +08:00  
				
					
						
							
							
								 
						
							
								edeea47dec 
								
							 
						 
						
							
							
								
								chore: Improve the code.  
							
							
							
						 
						
							2021-11-29 22:26:18 +08:00  
				
					
						
							
							
								 
						
							
								fe2d184faf 
								
							 
						 
						
							
							
								
								fix: userOwnsEncryptionKeys always returns true  
							
							... 
							
							
							
							Actually the homeserver sends an
empty object in the deviceKeys map
so we need to check if this object
is there but is empty. 
							
						 
						
							2021-11-28 10:37:56 +01:00  
				
					
						
							
							
								 
						
							
								01276bbf60 
								
							 
						 
						
							
							
								
								chore: add more interface for delegate.  
							
							
							
						 
						
							2021-11-27 01:29:11 +08:00  
				
					
						
							
							
								 
						
							
								60618d1775 
								
							 
						 
						
							
							
								
								chore: Add WebRTC delegate interface.  
							
							
							
						 
						
							2021-11-27 01:20:04 +08:00  
				
					
						
							
							
								 
						
							
								44934d5911 
								
							 
						 
						
							
							
								
								Merge branch 'krille/enable-e2eerecovery' into 'main'  
							
							... 
							
							
							
							chore: Enable E2EE recovery by default
See merge request famedly/company/frontend/famedlysdk!915 
							
						 
						
							2021-11-26 13:05:13 +00:00  
				
					
						
							
							
								 
						
							
								72584d679c 
								
							 
						 
						
							
							
								
								chore: bump version for webrtc_interface.  
							
							
							
						 
						
							2021-11-26 20:33:57 +08:00  
				
					
						
							
							
								 
						
							
								ac06864627 
								
							 
						 
						
							
							
								
								feat: Migrate olm sessions on database migration  
							
							... 
							
							
							
							This adds a getAllOlmSessions
endpoint to the database API and
implements them in both
implementations. This also
adds it to the database
migration. 
							
						 
						
							2021-11-26 08:17:43 +01:00  
				
					
						
							
							
								 
						
							
								03418bfe8b 
								
							 
						 
						
							
							
								
								chore: Enable E2EE recovery by default  
							
							... 
							
							
							
							We have disabled it by default to
prevent using workarounds as
long time solutions and to not
miss bugs. But in a federated
context we can not be sure that
we all Matrix clients are ever
bug free and we have now the
onEncryptionError Stream
anyway. 
							
						 
						
							2021-11-25 15:48:17 +01:00  
				
					
						
							
							
								 
						
							
								79b74e2bbf 
								
							 
						 
						
							
							
								
								fix: Remove user avatar  
							
							
							
						 
						
							2021-11-25 09:00:59 +01:00  
				
					
						
							
							
								 
						
							
								64257735ac 
								
							 
						 
						
							
							
								
								Merge branch 'krille/limited-timeline-behavior' into 'main'  
							
							... 
							
							
							
							fix: Limited timeline clears too much events
Closes  #217 
See merge request famedly/company/frontend/famedlysdk!907 
							
						 
						
							2021-11-23 15:06:29 +00:00  
				
					
						
							
							
								 
						
							
								da57be44e4 
								
							 
						 
						
							
							
								
								Merge branch 'krille/fix-decrypt-room-event' into 'main'  
							
							... 
							
							
							
							fix: Decrypt last event of a room
Closes  #251 
See merge request famedly/company/frontend/famedlysdk!904 
							
						 
						
							2021-11-23 15:03:45 +00:00  
				
					
						
							
							
								 
						
							
								bc6ec5e592 
								
							 
						 
						
							
							
								
								Merge branch 'krille/idb' into 'main'  
							
							... 
							
							
							
							feat: Implement FluffyBox database
See merge request famedly/company/frontend/famedlysdk!900 
							
						 
						
							2021-11-23 15:00:42 +00:00  
				
					
						
							
							
								 
						
							
								01eb851364 
								
							 
						 
						
							
							
								
								fix:  
							
							
							
						 
						
							2021-11-23 15:48:18 +01:00  
				
					
						
							
							
								 
						
							
								17d8b4d25f 
								
							 
						 
						
							
							
								
								Merge branch 'krille/add-clear-cache-command' into 'main'  
							
							... 
							
							
							
							feat: Add clear cache command
See merge request famedly/company/frontend/famedlysdk!908 
							
						 
						
							2021-11-23 13:06:53 +00:00  
				
					
						
							
							
								 
						
							
								ee21121a63 
								
							 
						 
						
							
							
								
								fix: Workaround for null boolean  
							
							... 
							
							
							
							deviceKeysList.outdated is not nullable but we have seen this error
in production: `Failed assertion: boolean expression must not be null`
So this could either be a null safety bug in Dart or a result of
using unsound null safety. The extra equal check `== true` should
safe us here 
							
						 
						
							2021-11-23 13:53:07 +01:00  
				
					
						
							
							
								 
						
							
								921c694888 
								
							 
						 
						
							
							
								
								feat: Add clear cache command  
							
							
							
						 
						
							2021-11-23 09:48:08 +01:00  
				
					
						
							
							
								 
						
							
								9cbe1099e5 
								
							 
						 
						
							
							
								
								fix: Limited timeline clears too much events  
							
							... 
							
							
							
							This fixes the bug that the
limited timeline flag also
clears all events from the
current SyncUpdate in an
open timeline. 
							
						 
						
							2021-11-23 09:06:30 +01:00  
				
					
						
							
							
								 
						
							
								3338da4e09 
								
							 
						 
						
							
							
								
								fix: Ability to remove avatar from room and account  
							
							... 
							
							
							
							To remove an avatar the
client needs to send an
empty object. This is now
possible by making the
MatrixFile parameter nullable. 
							
						 
						
							2021-11-22 19:36:38 +01:00  
				
					
						
							
							
								 
						
							
								18af7e0642 
								
							 
						 
						
							
							
								
								chore: Set client to final.  
							
							
							
						 
						
							2021-11-22 23:08:52 +08:00  
				
					
						
							
							
								 
						
							
								12df5d8cdd 
								
							 
						 
						
							
							
								
								chore: Use RTCFactory interface to create MediaStream, VideoRenderer.  
							
							
							
						 
						
							2021-11-22 22:41:49 +08:00  
				
					
						
							
							
								 
						
							
								27c03b4fad 
								
							 
						 
						
							
							
								
								fix: Request history in archived rooms  
							
							... 
							
							
							
							We have just forgotten to
set the prevBatch token in
the room object. 
							
						 
						
							2021-11-22 10:37:26 +01:00  
				
					
						
							
							
								 
						
							
								f3775fa5ba 
								
							 
						 
						
							
							
								
								fix: Decrypt last event of a room  
							
							
							
						 
						
							2021-11-22 10:18:44 +01:00  
				
					
						
							
							
								 
						
							
								a61e1ae4a3 
								
							 
						 
						
							
							
								
								feat: Add commands to create chats  
							
							
							
						 
						
							2021-11-21 13:40:41 +01:00  
				
					
						
							
							
								 
						
							
								5dfb196c90 
								
							 
						 
						
							
							
								
								chore: dart format.  
							
							
							
						 
						
							2021-11-19 18:03:58 +08:00  
				
					
						
							
							
								 
						
							
								93b623f2d5 
								
							 
						 
						
							
							
								
								chore: Use webrtc interface to build the voip module.  
							
							
							
						 
						
							2021-11-19 17:51:38 +08:00  
				
					
						
							
							
								 
						
							
								b99a78476a 
								
							 
						 
						
							
							
								
								refactor: Remove Sembast database implementation  
							
							... 
							
							
							
							It was a nice experiment but it
loading everything into memory
is just too slow for big
accounts. 
							
						 
						
							2021-11-18 19:55:21 +01:00  
				
					
						
							
							
								 
						
							
								0532974022 
								
							 
						 
						
							
							
								
								Merge branch 'krille/sembast' into 'main'  
							
							... 
							
							
							
							feat: Implement sembast store
Closes  #239 
See merge request famedly/company/frontend/famedlysdk!892 
							
						 
						
							2021-11-16 09:42:40 +00:00  
				
					
						
							
							
								 
						
							
								f5051a5afe 
								
							 
						 
						
							
							
								
								feat: Implement sembast store  
							
							... 
							
							
							
							refactor: Use typed store 
							
						 
						
							2021-11-16 09:50:25 +01:00  
				
					
						
							
							
								 
						
							
								ae5225f495 
								
							 
						 
						
							
							
								
								Merge branch 'krille/fix-start-chat' into 'main'  
							
							... 
							
							
							
							fix: Dont enable e2ee without encryption support
See merge request famedly/company/frontend/famedlysdk!893 
							
						 
						
							2021-11-16 08:07:32 +00:00  
				
					
						
							
							
								 
						
							
								1804838324 
								
							 
						 
						
							
							
								
								Merge branch 'krille/fix-crash-in-htmltotext' into 'main'  
							
							... 
							
							
							
							fix: HtmlToText crashes with an empty code block
Closes  #249 
See merge request famedly/company/frontend/famedlysdk!897 
							
						 
						
							2021-11-16 07:27:09 +00:00  
				
					
						
							
							
								 
						
							
								66bf8e6ace 
								
							 
						 
						
							
							
								
								fix: HtmlToText crashes with an empty code block  
							
							
							
						 
						
							2021-11-16 08:18:07 +01:00  
				
					
						
							
							
								 
						
							
								56d9ba7d4a 
								
							 
						 
						
							
							
								
								refactor: [WIP] Voip abstract interface.  
							
							
							
						 
						
							2021-11-15 22:31:38 +08:00  
				
					
						
							
							
								 
						
							
								13658b7da8 
								
							 
						 
						
							
							
								
								chore: Trim formatted username fallback  
							
							... 
							
							
							
							A user has a mxid with a trailing "-" which
becomes a whitespace here. We should
trim those whitespaces after formatting. 
							
						 
						
							2021-11-15 13:08:31 +01:00  
				
					
						
							
							
								 
						
							
								b7565af56f 
								
							 
						 
						
							
							
								
								fix: use originServerTs to check if state event is old  
							
							... 
							
							
							
							Due to server bugs or whatever it sometimes
happens that old state events appear
in the setState method in the room class.
Previously we checked if we already know
this event ID, but for this we needed to
check the timeline which is very fluid.
Also this is a database operation in a
non-async method which works in Hive but
not in Sembast.
Using originServerTs is not 100% safe as
well but should be more stable because
the chance that servers have veeery wrong
time (which is necessary here) is much
lower than the risk that the timeline
is not long enough to know the
old event. 
							
						 
						
							2021-11-15 10:57:55 +01:00  
				
					
						
							
							
								 
						
							
								c8c4562f70 
								
							 
						 
						
							
							
								
								fix: Dont enable e2ee without encryption support  
							
							... 
							
							
							
							This also adds a missing visibility
parameter to the
createGroupChat method. 
							
						 
						
							2021-11-13 11:58:07 +01:00  
				
					
						
							
							
								 
						
							
								f052957c0a 
								
							 
						 
						
							
							
								
								fix: Change eventstatus of edits in prevEvent  
							
							... 
							
							
							
							Unfortunately the last fix
was not working.
This fixes it for real now and also
adds a test case to make sure it
never breaks again. 
							
						 
						
							2021-11-11 09:48:50 +01:00  
				
					
						
							
							
								 
						
							
								0822e3809d 
								
							 
						 
						
							
							
								
								chore: Null safety for voip.dart.  
							
							
							
						 
						
							2021-11-10 21:47:16 +08:00  
				
					
						
							
							
								 
						
							
								09e24fd33e 
								
							 
						 
						
							
							
								
								feat: Migrate voip code from famedly-app.  
							
							
							
						 
						
							2021-11-10 21:40:36 +08:00  
				
					
						
							
							
								 
						
							
								be617ee974 
								
							 
						 
						
							
							
								
								Merge branch 'krille/update_api' into 'main'  
							
							... 
							
							
							
							refactor: Update matrix_api_lite and use SyncUpdate constructors
See merge request famedly/company/frontend/famedlysdk!887 
							
						 
						
							2021-11-10 11:40:49 +00:00  
				
					
						
							
							
								 
						
							
								a78f64715b 
								
							 
						 
						
							
							
								
								Merge branch 'krille/fix-last-event-edit' into 'main'  
							
							... 
							
							
							
							fix: Edits as lastEvent do not update
Closes  #244 
See merge request famedly/company/frontend/famedlysdk!888 
							
						 
						
							2021-11-10 11:11:48 +00:00  
				
					
						
							
							
								 
						
							
								d16c25b26d 
								
							 
						 
						
							
							
								
								fix: Edits as lastEvent do not update  
							
							... 
							
							
							
							This fixes a bug where edit
events as lastEvents do not
update from SENDING status.
Because previously it only
checks if the event ID
matches. 
							
						 
						
							2021-11-10 10:43:05 +01:00  
				
					
						
							
							
								 
						
							
								58b36a67a3 
								
							 
						 
						
							
							
								
								refactor: Update matrix_api_lite and use SyncUpdate constructors  
							
							
							
						 
						
							2021-11-10 10:04:03 +01:00  
				
					
						
							
							
								 
						
							
								048b7faba0 
								
							 
						 
						
							
							
								
								fix: JSON parsing in decryptRoomEvent method  
							
							... 
							
							
							
							This makes the use of the
event content null safe and
type safe which fixes a
regression when sessionId is
null. 
							
						 
						
							2021-11-10 09:19:40 +01:00