Commit d3a83ecc authored by Wilko Manger's avatar Wilko Manger

Make saving and getting user state time null safe

parent fd0502e7
......@@ -1065,7 +1065,7 @@ class SqfliteStore implements Store {
[
user.id.toString(),
user.state.roomId.toString(),
user.state.since.millisecondsSinceEpoch,
user.state.since?.millisecondsSinceEpoch,
user.state.displayName,
url,
membership,
......@@ -1125,7 +1125,7 @@ class SqfliteStore implements Store {
values.addAll([
from.id.toString(),
from.state.roomId.toString(),
from.state.since.millisecondsSinceEpoch,
from.state.since?.millisecondsSinceEpoch,
]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment