Add Cross-Signing
This commit is contained in:
parent
7a2fdd8eda
commit
c4a33e411a
13 changed files with 1149 additions and 74 deletions
|
|
@ -127,7 +127,7 @@ Future<void> migrate(String clientName, Database db, Store store) async {
|
|||
var sess = olm.Session();
|
||||
sess.unpickle(credentials['userID'], pickle);
|
||||
await db.storeOlmSession(
|
||||
clientId, identKey, sess.session_id(), pickle);
|
||||
clientId, identKey, sess.session_id(), pickle, null);
|
||||
sess?.free();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,10 +16,13 @@ extension RoomStatusExtension on Room {
|
|||
if (directChatPresence.presence.currentlyActive == true) {
|
||||
return L10n.of(context).currentlyActive;
|
||||
}
|
||||
return L10n.of(context).lastActiveAgo(
|
||||
DateTime.fromMillisecondsSinceEpoch(
|
||||
directChatPresence.presence.lastActiveAgo)
|
||||
.localizedTimeShort(context));
|
||||
if (directChatPresence.presence.lastActiveAgo == null) {
|
||||
return L10n.of(context).lastSeenLongTimeAgo;
|
||||
}
|
||||
final time = DateTime.fromMillisecondsSinceEpoch(
|
||||
DateTime.now().millisecondsSinceEpoch -
|
||||
directChatPresence.presence.lastActiveAgo);
|
||||
return L10n.of(context).lastActiveAgo(time.localizedTimeShort(context));
|
||||
}
|
||||
return L10n.of(context).lastSeenLongTimeAgo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue