Modify #warning to get author and date.

This commit is contained in:
Phenom 2017-07-15 18:24:55 +02:00 committed by csoler
parent 26397d7e4d
commit 69060f8119
2 changed files with 2 additions and 2 deletions

View File

@ -1243,7 +1243,7 @@ void ChatHandler::handleUnreadMsgs(Request &/*req*/, Response &resp)
if(count && (mit2 != mChatInfo.end())) if(count && (mit2 != mChatInfo.end()))
{ {
resp.mDataStream.getStreamToMember() resp.mDataStream.getStreamToMember()
#warning @deprecated using "id" as key can cause problems in some JS based \ #warning Gioacchino Mazzurco 2017-03-24: @deprecated using "id" as key can cause problems in some JS based \
languages like Qml @see chat_id instead languages like Qml @see chat_id instead
<< makeKeyValue("id", mit->first.toStdString()) << makeKeyValue("id", mit->first.toStdString())
<< makeKeyValue("chat_id", mit->first.toStdString()) << makeKeyValue("chat_id", mit->first.toStdString())

View File

@ -243,7 +243,7 @@ void IdentityHandler::handleWildcard(Request & /*req*/, Response &resp)
bool pgp_linked = (grp.mMeta.mGroupFlags & bool pgp_linked = (grp.mMeta.mGroupFlags &
RSGXSID_GROUPFLAG_REALID_kept_for_compatibility); RSGXSID_GROUPFLAG_REALID_kept_for_compatibility);
resp.mDataStream.getStreamToMember() resp.mDataStream.getStreamToMember()
#warning @deprecated using "id" as key can cause problems in some JS based \ #warning Gioacchino Mazzurco 2017-03-24: @deprecated using "id" as key can cause problems in some JS based \
languages like Qml @see gxs_id instead languages like Qml @see gxs_id instead
<< makeKeyValueReference("id", grp.mMeta.mGroupId) << makeKeyValueReference("id", grp.mMeta.mGroupId)
<< makeKeyValueReference("gxs_id", grp.mMeta.mGroupId) << makeKeyValueReference("gxs_id", grp.mMeta.mGroupId)