Show receipt requested for outgoing messages

pull/194/merge
M66B 3 years ago
parent e670335429
commit 5af0ac7a54

@ -3978,12 +3978,16 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
private void onReceipt(TupleMessageEx message) { private void onReceipt(TupleMessageEx message) {
if (EntityFolder.isOutgoing(message.folderType))
ToastEx.makeText(context, R.string.title_legend_receipt, Toast.LENGTH_LONG).show();
else {
Intent reply = new Intent(context, ActivityCompose.class) Intent reply = new Intent(context, ActivityCompose.class)
.putExtra("action", "dsn") .putExtra("action", "dsn")
.putExtra("dsn", EntityMessage.DSN_RECEIPT) .putExtra("dsn", EntityMessage.DSN_RECEIPT)
.putExtra("reference", message.id); .putExtra("reference", message.id);
context.startActivity(reply); context.startActivity(reply);
} }
}
private void onSearchContact(TupleMessageEx message) { private void onSearchContact(TupleMessageEx message) {
Bundle args = new Bundle(); Bundle args = new Bundle();

Loading…
Cancel
Save