mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
fixes
This commit is contained in:
parent
8bb8285e50
commit
3af819e28b
@ -107,7 +107,7 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
||||
|
||||
var lastline =
|
||||
lines.indexWhere((element) => element.contains('END VEILIDCHAT'));
|
||||
if (lastline != -1) {
|
||||
if (lastline == -1) {
|
||||
lastline = lines.length;
|
||||
}
|
||||
if (lastline <= firstline) {
|
||||
@ -127,6 +127,13 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
||||
final contactRequestInboxKey = proto.TypedKeyProto.fromProto(
|
||||
contactInvitation.contactRequestInboxKey);
|
||||
|
||||
// xxx should ensure contact request is not from ourselves
|
||||
// xxx or implement as 'note to self' but this could be done more carefully
|
||||
// xxx this operation gets the wrong parent. can we allow opening dht records
|
||||
// xxx that we already have open for readonly?
|
||||
|
||||
// xxx test on multiple devices
|
||||
|
||||
// Open context request inbox subkey zero to get the contact request object
|
||||
final pool = await DHTRecordPool.instance();
|
||||
await (await pool.openRead(contactRequestInboxKey))
|
||||
|
@ -93,7 +93,7 @@ Future<Uint8List> createContactInvitation(
|
||||
final crpriv = ContactRequestPrivate()
|
||||
..writerKey = writer.key.toProto()
|
||||
..profile = activeAccountInfo.account.profile
|
||||
..accountMasterRecordKey =
|
||||
..identityMasterRecordKey =
|
||||
activeAccountInfo.userLogin.accountMasterRecordKey.toProto()
|
||||
..chatRecordKey = localConversation.key.toProto()
|
||||
..expiration = expiration?.toInt64() ?? Int64.ZERO;
|
||||
|
Loading…
Reference in New Issue
Block a user