mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
catch new DC_EVENT_MSGS_NOTICED as needed
This commit is contained in:
@@ -388,12 +388,6 @@ JNIEXPORT void Java_com_b44t_messenger_DcContext_marknoticedChat(JNIEnv *env, jo
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void Java_com_b44t_messenger_DcContext_marknoticedAllChats(JNIEnv *env, jobject obj)
|
||||
{
|
||||
dc_marknoticed_all_chats(get_dc_context(env, obj));
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void Java_com_b44t_messenger_DcContext_marknoticedContact(JNIEnv *env, jobject obj, jint contact_id)
|
||||
{
|
||||
dc_marknoticed_contact(get_dc_context(env, obj), contact_id);
|
||||
|
||||
@@ -16,6 +16,7 @@ public class DcContext {
|
||||
public final static int DC_EVENT_ERROR_SELF_NOT_IN_GROUP = 410;
|
||||
public final static int DC_EVENT_MSGS_CHANGED = 2000;
|
||||
public final static int DC_EVENT_INCOMING_MSG = 2005;
|
||||
public final static int DC_EVENT_MSGS_NOTICED = 2008;
|
||||
public final static int DC_EVENT_MSG_DELIVERED = 2010;
|
||||
public final static int DC_EVENT_MSG_FAILED = 2012;
|
||||
public final static int DC_EVENT_MSG_READ = 2015;
|
||||
@@ -131,7 +132,6 @@ public class DcContext {
|
||||
public @NonNull DcChat getChat (int chat_id) { return new DcChat(getChatCPtr(chat_id)); }
|
||||
public native void markseenMsgs (int msg_ids[]);
|
||||
public native void marknoticedChat (int chat_id);
|
||||
public native void marknoticedAllChats ();
|
||||
public native void marknoticedContact (int contact_id);
|
||||
public native void setChatVisibility (int chat_id, int visibility);
|
||||
public native int getChatIdByContactId (int contact_id);
|
||||
|
||||
@@ -114,6 +114,7 @@ public class ConversationListFragment extends Fragment
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_CHAT_MODIFIED, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_INCOMING_MSG, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_MSGS_CHANGED, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_MSGS_NOTICED, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_MSG_DELIVERED, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_MSG_FAILED, this);
|
||||
dcContext.eventCenter.addObserver(DcContext.DC_EVENT_MSG_READ, this);
|
||||
|
||||
Reference in New Issue
Block a user