mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
update notifications of visible thread in bg, fixes #720
This commit is contained in:
@@ -93,7 +93,13 @@ public class MessageNotifier {
|
||||
public static void updateVisibleChat(Context context, long chatId) {
|
||||
visibleChatId = chatId;
|
||||
if (visibleChatId == NO_VISIBLE_CHAT_ID && pendingNotifications.size() > 0) {
|
||||
updatePendingNotifications(context);
|
||||
new AsyncTask<Void, Void, Void>() {
|
||||
@Override
|
||||
protected Void doInBackground(Void... params) {
|
||||
updatePendingNotifications(context);
|
||||
return null;
|
||||
}
|
||||
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user