Changes the chat room contact source to return chat rooms that contains

the query string not only start with it.
cusax-fix
hristoterezov 12 years ago
parent c0f4ebdcd1
commit eff7474667

@ -244,9 +244,9 @@ private void addChatRoom(ChatRoom room, boolean addQueryResult,
boolean isAutoJoin)
{
if(queryString == null
|| ((room.getName().startsWith(
|| ((room.getName().contains(
queryString)
|| room.getIdentifier().startsWith(queryString)
|| room.getIdentifier().contains(queryString)
)))
{
ChatRoomSourceContact contact
@ -283,9 +283,9 @@ private void addChatRoom(ProtocolProviderService pps,
boolean isAutoJoin)
{
if(queryString == null
|| ((chatRoomName.startsWith(
|| ((chatRoomName.contains(
queryString)
|| chatRoomID.startsWith(queryString)
|| chatRoomID.contains(queryString)
)))
{
ChatRoomSourceContact contact

Loading…
Cancel
Save