don't ask lines in logs DB when restore_lines in <= 0
This commit is contained in:
parent
38f0a20355
commit
bf00d4a6d4
1 changed files with 2 additions and 0 deletions
|
@ -1307,6 +1307,8 @@ class ChatControl(ChatControlBase):
|
||||||
|
|
||||||
# How many lines to restore and when to time them out
|
# How many lines to restore and when to time them out
|
||||||
restore_how_many = gajim.config.get('restore_lines')
|
restore_how_many = gajim.config.get('restore_lines')
|
||||||
|
if restore_how_many <= 0:
|
||||||
|
return
|
||||||
timeout = gajim.config.get('restore_timeout') # in minutes
|
timeout = gajim.config.get('restore_timeout') # in minutes
|
||||||
# number of messages that are in queue and are already logged
|
# number of messages that are in queue and are already logged
|
||||||
pending_how_many = 0 # we want to avoid duplication
|
pending_how_many = 0 # we want to avoid duplication
|
||||||
|
|
Loading…
Add table
Reference in a new issue