mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 21:04:32 -04:00
gui: check for show "is typing" before time call
This commit is contained in:
parent
b950e12bcf
commit
77c3eae976
1 changed files with 11 additions and 10 deletions
|
@ -1165,13 +1165,14 @@ void ChatWidget::resetStatusBar()
|
||||||
|
|
||||||
void ChatWidget::updateStatusTyping()
|
void ChatWidget::updateStatusTyping()
|
||||||
{
|
{
|
||||||
|
if(Settings->getChatDoNotSendIsTyping())
|
||||||
|
return;
|
||||||
if (time(NULL) - lastStatusSendTime > 5) // limit 'peer is typing' packets to at most every 10 sec
|
if (time(NULL) - lastStatusSendTime > 5) // limit 'peer is typing' packets to at most every 10 sec
|
||||||
{
|
{
|
||||||
#ifdef ONLY_FOR_LINGUIST
|
#ifdef ONLY_FOR_LINGUIST
|
||||||
tr("is typing...");
|
tr("is typing...");
|
||||||
#endif
|
#endif
|
||||||
if(!Settings->getChatDoNotSendIsTyping())
|
rsMsgs->sendStatusString(chatId, "is typing...");
|
||||||
rsMsgs->sendStatusString(chatId, "is typing...");
|
|
||||||
lastStatusSendTime = time(NULL) ;
|
lastStatusSendTime = time(NULL) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue