mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
don't allow to edit call messages
This commit is contained in:
parent
a24069ce3d
commit
c9816ae785
2 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ public class DcMsg {
|
||||||
public final static int DC_MSG_VOICE = 41;
|
public final static int DC_MSG_VOICE = 41;
|
||||||
public final static int DC_MSG_VIDEO = 50;
|
public final static int DC_MSG_VIDEO = 50;
|
||||||
public final static int DC_MSG_FILE = 60;
|
public final static int DC_MSG_FILE = 60;
|
||||||
|
public final static int DC_MSG_CALL = 71;
|
||||||
public final static int DC_MSG_WEBXDC = 80;
|
public final static int DC_MSG_WEBXDC = 80;
|
||||||
public final static int DC_MSG_VCARD = 90;
|
public final static int DC_MSG_VCARD = 90;
|
||||||
|
|
||||||
|
|
|
@ -366,7 +366,7 @@ public class ConversationFragment extends MessageSelectorFragment
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean canEditMsg(DcMsg dcMsg) {
|
static boolean canEditMsg(DcMsg dcMsg) {
|
||||||
return dcMsg.isOutgoing() && !dcMsg.isInfo() && !dcMsg.hasHtml() && !dcMsg.getText().isEmpty();
|
return dcMsg.isOutgoing() && !dcMsg.isInfo() && dcMsg.getType() != DcMsg.DC_MSG_CALL && !dcMsg.hasHtml() && !dcMsg.getText().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleClearChat() {
|
public void handleClearChat() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue