use of com.lingtuan.firefly.vo.ChatMsg in project SmartMesh_Android by SmartMeshFoundation.
the class FinalUserDataBase method deleteChatEventAddContactByMessageId.
/**
* Delete my information add buddy
*
* @param messageid
*/
public void deleteChatEventAddContactByMessageId(String messageid) {
db.delete(TableField.TABLE_CHAT_EVENT, TableField.FIELD_CHAT_ID + "='system-0' and " + TableField.FIELD_CHAT_HIDDEN + "=1 and " + TableField.FIELD_CHAT_SYSTEM + "=1 and " + TableField.FIELD_RESERVED_DATA1 + "=?", new String[] { messageid });
ChatMsg msg = getChatMsgAddContact();
if (msg != null) {
updateChatEventMsg(msg, true, false);
} else {
db.delete(TableField.TABLE_CHAT_EVENT, TableField.FIELD_CHAT_ID + "='system-0' and " + TableField.FIELD_CHAT_HIDDEN + "=0 and " + TableField.FIELD_CHAT_SYSTEM + "=1 and " + TableField.FIELD_RESERVED_DATA1 + "=?", new String[] { messageid });
}
}
Aggregations