mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
removed member gxs_id from ChatId class, because ChatId now uses tunnel ids stored in distant_chat_id for distant chat.
reverted naming confusion in in libresapi ChatHandler and fixed author of distant chat messages (distant chat is still unfinished)
This commit is contained in:
parent
0ac76d621e
commit
7cd880e1e4
9 changed files with 43 additions and 55 deletions
|
@ -58,13 +58,6 @@ ChatId::ChatId():
|
|||
|
||||
}
|
||||
|
||||
ChatId::ChatId(RsGxsId id):
|
||||
lobby_id(0)
|
||||
{
|
||||
type = TYPE_GXS_ID;
|
||||
gxs_id = id;
|
||||
}
|
||||
|
||||
ChatId::ChatId(RsPeerId id):
|
||||
lobby_id(0)
|
||||
{
|
||||
|
@ -244,10 +237,6 @@ bool ChatId::isLobbyId() const
|
|||
{
|
||||
return type == TYPE_LOBBY;
|
||||
}
|
||||
bool ChatId::isGxsId() const
|
||||
{
|
||||
return type == TYPE_GXS_ID;
|
||||
}
|
||||
bool ChatId::isBroadcast() const
|
||||
{
|
||||
return type == TYPE_BROADCAST;
|
||||
|
@ -263,16 +252,6 @@ RsPeerId ChatId::toPeerId() const
|
|||
}
|
||||
}
|
||||
|
||||
RsGxsId ChatId::toGxsId() const
|
||||
{
|
||||
if(type == TYPE_GXS_ID)
|
||||
return gxs_id;
|
||||
else
|
||||
{
|
||||
std::cerr << "ChatId Warning: conversation to gxs_id requested, but type is different. Current value=\"" << toStdString() << "\"" << std::endl;
|
||||
return RsGxsId();
|
||||
}
|
||||
}
|
||||
DistantChatPeerId ChatId::toDistantChatId() const
|
||||
{
|
||||
if(type == TYPE_PRIVATE_DISTANT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue