mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-18 03:46:31 +00:00
Fix setItemsToThread. Fixes https://github.com/austinhuang0131/barinsta/issues/967
This commit is contained in:
parent
f2a3506b19
commit
eed4036ad9
1 changed files with 7 additions and 2 deletions
|
|
@ -285,8 +285,13 @@ public final class InboxManager {
|
||||||
if (index < 0) return;
|
if (index < 0) return;
|
||||||
final List<DirectThread> threads = inbox.getThreads();
|
final List<DirectThread> threads = inbox.getThreads();
|
||||||
final DirectThread thread = threads.get(index);
|
final DirectThread thread = threads.get(index);
|
||||||
thread.setItems(updatedItems);
|
try {
|
||||||
setThread(inbox, index, thread);
|
final DirectThread threadClone = (DirectThread) thread.clone();
|
||||||
|
threadClone.setItems(updatedItems);
|
||||||
|
setThread(inbox, index, threadClone);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "setItemsToThread: ", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue