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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								872b3bff94 
								
							 
						 
						
							
							
								
								fix: Wrong null check in hive database  
							
							
							
						 
						
							2021-11-10 09:09:24 +01:00  
				
					
						
							
							
								 
						
							
								d2e7de4702 
								
							 
						 
						
							
							
								
								fix: crash on invalid displaynames  
							
							
							
						 
						
							2021-11-09 21:27:55 +01:00  
				
					
						
							
							
								 
						
							
								9abe1ed81d 
								
							 
						 
						
							
							
								
								fix: Dont enable e2ee in test verification DM room  
							
							
							
						 
						
							2021-11-09 15:42:43 +01:00  
				
					
						
							
							
								 
						
							
								4cf88e2be6 
								
							 
						 
						
							
							
								
								feat: More advanced create chat methods  
							
							... 
							
							
							
							This includes a new simplified
API to create new direct and
group chats. It also handles
enabling encryption by
default. 
							
						 
						
							2021-11-09 15:39:42 +01:00  
				
					
						
							
							
								 
						
							
								8116436da8 
								
							 
						 
						
							
							
								
								Merge branch 'krille/improve-start-up-time' into 'main'  
							
							... 
							
							
							
							feat: Make waiting on init db optional
Closes  #235 
See merge request famedly/company/frontend/famedlysdk!881 
							
						 
						
							2021-11-09 14:35:13 +00:00  
				
					
						
							
							
								 
						
							
								475e810523 
								
							 
						 
						
							
							
								
								feat: Make waiting on init db optional  
							
							... 
							
							
							
							This can improve the start-up time of apps.
The three big db reads on init are
loading account data, rooms and
device keys.
This makes it now possible to let
them run parallel
(while it may depend on platform
if this has any effect)
and the init() method can skip
awaiting them. They will
be at least awaited before handling
the first received sync.
So the app can already display the
room list before device keys are
loaded and request the first sync
from the server before anything
else is loaded from the DB. 
							
						 
						
							2021-11-09 15:27:48 +01:00  
				
					
						
							
							
								 
						
							
								c443b239b4 
								
							 
						 
						
							
							
								
								Merge branch 'krille/timeline-set-read-marker' into 'main'  
							
							... 
							
							
							
							refactor: Move setreadmarker functionality to timeline
See merge request famedly/company/frontend/famedlysdk!879 
							
						 
						
							2021-11-09 14:14:43 +00:00  
				
					
						
							
							
								 
						
							
								e313426dd9 
								
							 
						 
						
							
							
								
								refactor: Move setreadmarker functionality to timeline  
							
							... 
							
							
							
							Apps had a hard time to just set
the marker for the last event.
The lastEvent in the Room may
not be the actual last event
because we ignore several
event types there. Therefore
it makes sense to refactor
the setUnread method.
Now the timeline class has an
easy method to set the read
marker to the last synced
event, which can only be
known by the timeline if we
want to avoid another DB access. 
							
						 
						
							2021-11-09 14:56:59 +01:00  
				
					
						
							
							
								 
						
							
								7f9a75a43d 
								
							 
						 
						
							
							
								
								Merge branch 'krille/timeline-auto-update-list' into 'main'  
							
							... 
							
							
							
							feat: Add onInsert, onRemove and onUpdate cb to timeline
See merge request famedly/company/frontend/famedlysdk!880 
							
						 
						
							2021-11-09 13:08:42 +00:00  
				
					
						
							
							
								 
						
							
								315ed7bdcb 
								
							 
						 
						
							
							
								
								feat: Add more benchmarks for sync, timeline, init  
							
							... 
							
							
							
							This also disables benchmarks if loglevel is higher than debug. 
							
						 
						
							2021-11-09 10:03:59 +01:00  
				
					
						
							
							
								 
						
							
								e1f93637b3 
								
							 
						 
						
							
							
								
								feat: Add onInsert, onRemove and onUpdate cb to timeline  
							
							... 
							
							
							
							This makes it finally possible to
use Flutters AnimatedListView with
our Timeline class and in web we
can now update single elements
instead of the whole timeline
on every change which should
be quiet good for the
performance 
							
						 
						
							2021-11-09 09:55:26 +01:00  
				
					
						
							
							
								 
						
							
								3e1aee6fcd 
								
							 
						 
						
							
							
								
								fix: Null error in get own profile  
							
							... 
							
							
							
							On converting a User object to
a Profile object now leads to an
error. This fixes it. 
							
						 
						
							2021-11-05 12:21:48 +01:00  
				
					
						
							
							
								 
						
							
								9be87918f1 
								
							 
						 
						
							
							
								
								refactor: Make room in Event class not nullable  
							
							
							
						 
						
							2021-11-04 14:21:04 +01:00  
				
					
						
							
							
								 
						
							
								eb200afe18 
								
							 
						 
						
							
							
								
								refactor: download method should not return null  
							
							... 
							
							
							
							If the decryption fails, it should
throw an exception and not
return null. 
							
						 
						
							2021-11-04 12:22:20 +01:00  
				
					
						
							
							
								 
						
							
								5c87b560b9 
								
							 
						 
						
							
							
								
								fix: obay explicitly set ports in mxc URLs  
							
							
							
						 
						
							2021-11-03 08:54:04 +01:00  
				
					
						
							
							
								 
						
							
								a0bab1b587 
								
							 
						 
						
							
							
								
								feat: choose memberships returned by requestParticipants()  
							
							
							
						 
						
							2021-11-02 09:27:00 +01:00  
				
					
						
							
							
								 
						
							
								3130931f0d 
								
							 
						 
						
							
							
								
								Merge branch 'krille/dont-upload-keys-after-logout' into 'main'  
							
							... 
							
							
							
							fix: Do not upload keys after logout
Closes  #213 
See merge request famedly/company/frontend/famedlysdk!866 
							
						 
						
							2021-10-29 13:21:01 +00:00  
				
					
						
							
							
								 
						
							
								766b27427a 
								
							 
						 
						
							
							
								
								Merge branch 'td/invite-update' into 'main'  
							
							... 
							
							
							
							fix: add room invite update to roomStateBox, so invites don't show empty room when app is restarted
Closes  #228 
See merge request famedly/company/frontend/famedlysdk!865 
							
						 
						
							2021-10-29 13:17:30 +00:00  
				
					
						
							
							
								 
						
							
								6ee5771334 
								
							 
						 
						
							
							
								
								Merge branch 'nico/nullsafe' into 'main'  
							
							... 
							
							
							
							Make SDK nullsafe
Closes  #201 
See merge request famedly/company/frontend/famedlysdk!867 
							
						 
						
							2021-10-28 16:25:25 +00:00  
				
					
						
							
							
								 
						
							
								176dbbeda9 
								
							 
						 
						
							
							
								
								fix: Do not upload keys after logout  
							
							... 
							
							
							
							This should fix a race condition where uploading keys is still ongoing
after user has already logged out. 
							
						 
						
							2021-10-28 16:46:45 +02:00  
				
					
						
							
							
								 
						
							
								b6eed6daff 
								
							 
						 
						
							
							
								
								fix: don't escape @  
							
							
							
						 
						
							2021-10-28 16:46:15 +02:00  
				
					
						
							
							
								 
						
							
								7d78233bf0 
								
							 
						 
						
							
							
								
								refactor: remove literal boolean comparisons leftover from nullsafety conversion  
							
							
							
						 
						
							2021-10-28 14:40:22 +02:00  
				
					
						
							
							
								 
						
							
								6e20c53b01 
								
							 
						 
						
							
							
								
								refactor: remove redundant null checks  
							
							
							
						 
						
							2021-10-28 14:32:09 +02:00  
				
					
						
							
							
								 
						
							
								6abd9e7e22 
								
							 
						 
						
							
							
								
								refactor: nullsafe event test  
							
							
							
						 
						
							2021-10-28 03:44:01 +02:00  
				
					
						
							
							
								 
						
							
								ebd5bc3d24 
								
							 
						 
						
							
							
								
								refactor: make room nullsafe  
							
							
							
						 
						
							2021-10-28 00:54:25 +02:00  
				
					
						
							
							
								 
						
							
								b955318edb 
								
							 
						 
						
							
							
								
								fix: add room invite update to roomStateBox, so invites don't show empty room when app is restarted  
							
							
							
						 
						
							2021-10-26 16:00:22 +05:30  
				
					
						
							
							
								 
						
							
								06281d1361 
								
							 
						 
						
							
							
								
								refactor: add export & order package exports  
							
							
							
						 
						
							2021-10-25 17:51:20 +02:00  
				
					
						
							
							
								 
						
							
								fb0a84d7b2 
								
							 
						 
						
							
							
								
								refactor: make client nullsafe  
							
							
							
						 
						
							2021-10-25 16:34:02 +02:00  
				
					
						
							
							
								 
						
							
								17fd1f22b3 
								
							 
						 
						
							
							
								
								refactor: make event nullsafe  
							
							
							
						 
						
							2021-10-25 10:10:25 +00:00  
				
					
						
							
							
								 
						
							
								d2ee73f96f 
								
							 
						 
						
							
							
								
								chore: Bump version  
							
							
							
						 
						
							2021-10-25 11:19:45 +02:00  
				
					
						
							
							
								 
						
							
								7a85d52d93 
								
							 
						 
						
							
							
								
								fix: Remove unnecessary null check  
							
							
							
						 
						
							2021-10-25 11:11:55 +02:00  
				
					
						
							
							
								 
						
							
								7d5652e9a3 
								
							 
						 
						
							
							
								
								fix: Remove duplicated import  
							
							
							
						 
						
							2021-10-25 11:11:17 +02:00  
				
					
						
							
							
								 
						
							
								9193950970 
								
							 
						 
						
							
							
								
								fix: Auto update room states  
							
							... 
							
							
							
							Room states are ignored if the event with the same event ID
is already known in the database. But
because of the event is stored in the
database and after this
setState in the Room class is called,
an event is always "known" and
therefore auto updating was broken. 
							
						 
						
							2021-10-25 10:55:54 +02:00  
				
					
						
							
							
								 
						
							
								faba36d476 
								
							 
						 
						
							
							
								
								fix: Missing null check in a nested json map  
							
							
							
						 
						
							2021-10-18 15:45:29 +02:00  
				
					
						
							
							
								 
						
							
								2b8782c699 
								
							 
						 
						
							
							
								
								fix: delete forgotten files caused by mergetool  
							
							
							
						 
						
							2021-10-14 15:37:43 +02:00  
				
					
						
							
							
								 
						
							
								c6e0359522 
								
							 
						 
						
							
							
								
								refactor: Change event status to enum  
							
							
							
						 
						
							2021-10-14 13:31:07 +00:00  
				
					
						
							
							
								 
						
							
								d5e5500ac5 
								
							 
						 
						
							
							
								
								refactor: make timeline nullsafe  
							
							
							
						 
						
							2021-10-14 10:50:18 +00:00  
				
					
						
							
							
								 
						
							
								8146aa05b8 
								
							 
						 
						
							
							
								
								refactor: make user nullsafe  
							
							
							
						 
						
							2021-10-14 10:27:34 +00:00  
				
					
						
							
							
								 
						
							
								978c3bb994 
								
							 
						 
						
							
							
								
								refactor: make voip_content nullsafe  
							
							
							
						 
						
							2021-10-13 17:03:34 +02:00  
				
					
						
							
							
								 
						
							
								60956bde00 
								
							 
						 
						
							
							
								
								chore: port the remaining encryption files to nullsafety  
							
							
							
						 
						
							2021-10-13 13:58:21 +00:00  
				
					
						
							
							
								 
						
							
								3ae42d1a88 
								
							 
						 
						
							
							
								
								fix: Type error when using CryptoKey in dart web  
							
							... 
							
							
							
							In Dart Web when using CryptoKey we
get a type error. When using the html version of it
it seems to work fine. 
							
						 
						
							2021-10-13 12:30:04 +00:00  
				
					
						
							
							
								 
						
							
								3130139bde 
								
							 
						 
						
							
							
								
								refactor: prepare null safefy for user.dart  
							
							... 
							
							
							
							With this commit, the migration tool needs to do 8 fewer changes. 
							
						 
						
							2021-10-11 19:58:26 +00:00