mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
render saved messages accordingly
This commit is contained in:
parent
0eb02b59a3
commit
0704f7f1e7
4 changed files with 26 additions and 2 deletions
|
@ -185,6 +185,17 @@ public class DcMsg {
|
|||
return cPtr != 0 ? new DcMsg(cPtr) : null;
|
||||
}
|
||||
|
||||
public native int getOriginalMsgId ();
|
||||
public native int getSavedMsgId ();
|
||||
|
||||
public boolean canSave() {
|
||||
return !isInfo();
|
||||
}
|
||||
|
||||
public boolean isSaved() {
|
||||
return getOriginalMsgId() != 0 || getSavedMsgId() != 0;
|
||||
}
|
||||
|
||||
public File getFileAsFile() {
|
||||
if(getFile()==null)
|
||||
throw new AssertionError("expected a file to be present.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue