Search in sources :

Example 61 with ChatMsg

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 });
    }
}
Also used : ChatMsg(com.lingtuan.firefly.vo.ChatMsg)

Aggregations

ChatMsg (com.lingtuan.firefly.vo.ChatMsg)61 Bundle (android.os.Bundle)17 Intent (android.content.Intent)12 ArrayList (java.util.ArrayList)11 UserBaseVo (com.lingtuan.firefly.vo.UserBaseVo)9 Cursor (android.database.Cursor)8 SuppressLint (android.annotation.SuppressLint)6 WifiPeopleVO (com.lingtuan.firefly.offline.vo.WifiPeopleVO)5 View (android.view.View)4 ImageView (android.widget.ImageView)4 GroupMemberAvatarVo (com.lingtuan.firefly.contact.vo.GroupMemberAvatarVo)4 PendingIntent (android.app.PendingIntent)3 TextView (android.widget.TextView)3 MyDialogFragment (com.lingtuan.firefly.util.MyDialogFragment)3 LoginThread (com.lingtuan.firefly.xmpp.LoginThread)3 File (java.io.File)3 JSONObject (org.json.JSONObject)3 Bitmap (android.graphics.Bitmap)2 Message (android.os.Message)2 Editable (android.text.Editable)2