mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
Merge pull request #115 from PhenomRetroShare/AddWebUI_LobbyOrderByType
Order in WebUI Lobbies by first:
This commit is contained in:
commit
f6abe2fb46
@ -42,6 +42,12 @@ StreamBase& operator << (StreamBase& left, ChatHandler::Msg& m)
|
|||||||
|
|
||||||
bool compare_lobby_id(const ChatHandler::Lobby& l1, const ChatHandler::Lobby& l2)
|
bool compare_lobby_id(const ChatHandler::Lobby& l1, const ChatHandler::Lobby& l2)
|
||||||
{
|
{
|
||||||
|
if(l1.auto_subscribe && !l2.auto_subscribe) return true;
|
||||||
|
if(!l1.auto_subscribe && l2.auto_subscribe) return false;
|
||||||
|
if(l1.is_private && !l2.is_private) return true;
|
||||||
|
if(!l1.is_private && l2.is_private) return false;
|
||||||
|
if(l1.subscribed && !l2.subscribed) return true;
|
||||||
|
if(!l1.subscribed && l2.subscribed) return false;
|
||||||
return l1.id < l2.id;
|
return l1.id < l2.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user