From 5298e8bf7f8e3ad06916453b1dc983f5e1b4c1ad Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 9 Jan 2018 15:55:39 +0100 Subject: [PATCH] Also fixed getUnreadMessagesCount in old Java classes --- java/common/org/linphone/core/LinphoneChatRoom.java | 2 +- java/impl/org/linphone/core/LinphoneChatRoomImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/common/org/linphone/core/LinphoneChatRoom.java b/java/common/org/linphone/core/LinphoneChatRoom.java index 0f08e270f..e08378b02 100644 --- a/java/common/org/linphone/core/LinphoneChatRoom.java +++ b/java/common/org/linphone/core/LinphoneChatRoom.java @@ -80,7 +80,7 @@ public interface LinphoneChatRoom { * Returns the amount of unread messages associated with the peer of this chatRoom. * @return the amount of unread messages */ - int getUnreadMessageCount(); + int getUnreadMessagesCount(); /** * Returns the amount of messages associated with the peer of this chatRoom. diff --git a/java/impl/org/linphone/core/LinphoneChatRoomImpl.java b/java/impl/org/linphone/core/LinphoneChatRoomImpl.java index 0202f2ec0..5d1195c38 100644 --- a/java/impl/org/linphone/core/LinphoneChatRoomImpl.java +++ b/java/impl/org/linphone/core/LinphoneChatRoomImpl.java @@ -101,9 +101,9 @@ class LinphoneChatRoomImpl implements LinphoneChatRoom { } } - public int getUnreadMessageCount() { + public int getUnreadMessagesCount() { synchronized(getCore()){ - return getUnreadMessageCount(nativePtr); + return getUnreadMessagesCount(nativePtr); } }