mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 11:13:31 +00:00
Fix unreshare causing post to disappear
This commit is contained in:
parent
3f23e3e2fd
commit
45f3718c28
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue