fixed stale state after logout and replayed or lost share intents
This commit is contained in:
@@ -62,5 +62,18 @@ void main() {
|
||||
test('empty shares compare equal', () {
|
||||
expect(_share().contentEquals(_share()), isTrue);
|
||||
});
|
||||
|
||||
test('relocated share still equals its raw delivery', () {
|
||||
final raw = _share(filePaths: ['/cache/a.jpg']);
|
||||
final claimed = PendingShare(
|
||||
filePaths: ['/cache/share_intent/1/a.jpg'],
|
||||
text: null,
|
||||
receivedAt: DateTime(2026, 1, 1),
|
||||
sourcePaths: raw.filePaths,
|
||||
);
|
||||
|
||||
expect(claimed.contentEquals(raw), isTrue);
|
||||
expect(raw.contentEquals(claimed), isTrue);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user