Fix unreshare causing post to disappear

codemagic-setup
Hank Grabowski 2023-11-18 15:24:50 -05:00
rodzic 3f23e3e2fd
commit 45f3718c28
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -155,9 +155,6 @@ class TimelineManager extends ChangeNotifier {
FutureResult<EntryTreeItem, ExecError> resharePost(String id) async {
final result = await entryManagerService.resharePost(id);
if (result.isSuccess) {
for (final t in cachedTimelines.values) {
t.addOrUpdate([result.value]);
}
notifyListeners();
}
return result;
@ -166,9 +163,6 @@ class TimelineManager extends ChangeNotifier {
FutureResult<bool, ExecError> unResharePost(String id) async {
final result = await entryManagerService.unResharePost(id);
if (result.isSuccess) {
for (final t in cachedTimelines.values) {
t.removeTimelineEntry(id);
}
notifyListeners();
}
return result;