mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Adapt getFreshMsgCount() to new core.
This commit is contained in:
@@ -493,7 +493,7 @@ public class ChatlistCell extends BaseCell {
|
||||
|
||||
public void update(int mask) {
|
||||
if( m_showUnreadCount ) {
|
||||
unreadCount = m_mrChat.getFreshMsgCount();
|
||||
unreadCount = MrMailbox.getFreshMsgCount(m_mrChat.getId());
|
||||
}
|
||||
|
||||
if (mask != 0) {
|
||||
|
||||
@@ -74,7 +74,6 @@ public class MrChat {
|
||||
public int setDraft(String draft/*NULL=delete*/, long replyToMsgId) {
|
||||
return MrChatSetDraft(m_hChat, draft, replyToMsgId);
|
||||
}
|
||||
public native int getFreshMsgCount();
|
||||
|
||||
private long m_hChat; // must not be renamed as referenced by JNI under the name "m_hChat"
|
||||
private native static void MrChatUnref (long hChat);
|
||||
|
||||
@@ -165,6 +165,8 @@ public class MrMailbox {
|
||||
return MrMailboxGetMsgInfo(m_hMailbox, id);
|
||||
}
|
||||
|
||||
public static native int getFreshMsgCount(int chat_id);
|
||||
|
||||
public native static void deleteMsgs(int msg_ids[]);
|
||||
public native static void forwardMsgs(int msg_ids[], int chat_ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user