mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 08:59:50 -05:00
gui: check for show "is typing" before time call
This commit is contained in:
parent
b950e12bcf
commit
77c3eae976
@ -1165,12 +1165,13 @@ void ChatWidget::resetStatusBar()
|
||||
|
||||
void ChatWidget::updateStatusTyping()
|
||||
{
|
||||
if(Settings->getChatDoNotSendIsTyping())
|
||||
return;
|
||||
if (time(NULL) - lastStatusSendTime > 5) // limit 'peer is typing' packets to at most every 10 sec
|
||||
{
|
||||
#ifdef ONLY_FOR_LINGUIST
|
||||
tr("is typing...");
|
||||
#endif
|
||||
if(!Settings->getChatDoNotSendIsTyping())
|
||||
rsMsgs->sendStatusString(chatId, "is typing...");
|
||||
lastStatusSendTime = time(NULL) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user