Adapt getFreshMsgCount() to new core.

This commit is contained in:
B. Petersen
2017-11-10 12:25:33 +01:00
parent 1c97c2e408
commit af471f4cf8
4 changed files with 10 additions and 8 deletions
@@ -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);