mirror of https://github.com/M66B/FairEmail.git
Fixed opening incorrect message from notification
This commit is contained in:
parent
b39adf602a
commit
5f27799766
|
@ -1056,7 +1056,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
onMenuOutbox();
|
||||
|
||||
} else if (action.startsWith("thread")) {
|
||||
intent.putExtra("thread", action.split(":", 2)[1]);
|
||||
intent.putExtra("id", Long.parseLong(action.split(":", 2)[1]));
|
||||
onViewThread(intent);
|
||||
|
||||
} else if (action.equals("widget")) {
|
||||
|
|
|
@ -3838,11 +3838,11 @@ class Core {
|
|||
piContent = PendingIntent.getService(context, ServiceUI.PI_THREAD, thread, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
} else {
|
||||
Intent thread = new Intent(context, ActivityView.class);
|
||||
thread.setAction("thread:" + message.thread);
|
||||
thread.setAction("thread:" + message.id);
|
||||
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
thread.putExtra("account", message.account);
|
||||
thread.putExtra("folder", message.folder);
|
||||
thread.putExtra("id", message.id);
|
||||
thread.putExtra("thread", message.thread);
|
||||
thread.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(message.folderType));
|
||||
piContent = PendingIntent.getActivity(context, ActivityView.REQUEST_THREAD, thread, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
}
|
||||
|
|
|
@ -440,11 +440,11 @@ public class ServiceUI extends IntentService {
|
|||
|
||||
if (open) {
|
||||
Intent thread = new Intent(this, ActivityView.class);
|
||||
thread.setAction("thread:" + message.thread);
|
||||
thread.setAction("thread:" + message.id);
|
||||
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
thread.putExtra("account", message.account);
|
||||
thread.putExtra("folder", message.folder);
|
||||
thread.putExtra("id", message.id);
|
||||
thread.putExtra("thread", message.thread);
|
||||
thread.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(folder.type));
|
||||
startActivity(thread);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue