mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-13 11:42:17 -04:00
fixes
This commit is contained in:
parent
8bb8285e50
commit
3af819e28b
2 changed files with 9 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue