Fix Lobby auto-subscribe.

Save GxsId for each.
Disallow to auto-subscribe to signed lobby with unsigned id.
This commit is contained in:
Phenom 2017-07-19 13:38:26 +02:00
parent 0d681b149f
commit cbbc3920fa
3 changed files with 118 additions and 33 deletions

View file

@ -158,7 +158,8 @@ class DistributedChatService
time_t last_lobby_challenge_time ; // prevents bruteforce attack
time_t last_visible_lobby_info_request_time ; // allows to ask for updates
bool _should_reset_lobby_counts ;
RsGxsId _default_identity ;
RsGxsId _default_identity;
std::map<ChatLobbyId,RsGxsId> _lobby_default_identity;
uint32_t mServType ;
RsMutex mDistributedChatMtx ;