mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 01:27:10 -04:00
added distant chat settings
This commit is contained in:
parent
bdea4a66ed
commit
cbfe49f0f3
9 changed files with 2733 additions and 61 deletions
|
@ -363,8 +363,8 @@ void ChatWidget::init(const ChatId &chat_id, const QString &title)
|
|||
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();
|
||||
hist_chat_type = RS_HISTORY_TYPE_DISTANT ;
|
||||
messageCount = Settings->getDistantChatHistoryCount();
|
||||
} else if(chatId.isBroadcast()){
|
||||
hist_chat_type = RS_HISTORY_TYPE_PUBLIC;
|
||||
messageCount = Settings->getPublicChatHistoryCount();
|
||||
|
@ -435,8 +435,8 @@ ChatWidget::ChatType ChatWidget::chatType()
|
|||
void ChatWidget::blockSending(QString msg)
|
||||
{
|
||||
#ifndef RS_ASYNC_CHAT
|
||||
sendingBlocked = true;
|
||||
ui->sendButton->setEnabled(false);
|
||||
// sendingBlocked = true;
|
||||
// ui->sendButton->setEnabled(false);
|
||||
#endif
|
||||
ui->sendButton->setToolTip(msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue