mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Implement history for distant chat
Uses the same history config as private chat
This commit is contained in:
parent
d7531b3dea
commit
5dad1680e6
4 changed files with 25 additions and 6 deletions
|
@ -298,6 +298,9 @@ void ChatWidget::init(const ChatId &chat_id, const QString &title)
|
|||
// initialize first custom state string
|
||||
QString customStateString = QString::fromUtf8(rsMsgs->getCustomStateString(chatId.toPeerId()).c_str());
|
||||
updatePeersCustomStateString(QString::fromStdString(chatId.toPeerId().toStdString()), customStateString);
|
||||
} else if (chatType() == CHATTYPE_DISTANT){
|
||||
hist_chat_type = RS_HISTORY_TYPE_PRIVATE ;
|
||||
messageCount = Settings->getPrivateChatHistoryCount();
|
||||
} else if(chatId.isBroadcast()){
|
||||
hist_chat_type = RS_HISTORY_TYPE_PUBLIC;
|
||||
messageCount = Settings->getPublicChatHistoryCount();
|
||||
|
@ -325,7 +328,7 @@ void ChatWidget::init(const ChatId &chat_id, const QString &title)
|
|||
continue;
|
||||
|
||||
QString name;
|
||||
if (chatId.isLobbyId()) {
|
||||
if (chatId.isLobbyId() || chatId.isGxsId()) {
|
||||
RsIdentityDetails details;
|
||||
if (rsIdentity->getIdDetails(RsGxsId(historyIt->peerName), details))
|
||||
name = QString::fromUtf8(details.mNickname.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue