split mail reply on -

master
Kevin Froman 2019-09-29 16:32:46 -05:00
parent d49811bc2e
commit f0e7810342
2 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import platform
from etc import onionrvalues
from onionrutils import localcommand
import logger
import filepaths
from . import daemonlaunch
@ -36,6 +37,8 @@ def restart():
while localcommand.local_command('ping', maxWait=8) == 'pong!':
time.sleep(0.3)
time.sleep(9)
while os.path.exists(filepaths.private_API_host_file):
time.sleep(1)
subprocess.Popen([SCRIPT_NAME, 'start'])
restart.onionr_help = 'Gracefully restart Onionr'

View File

@ -65,7 +65,7 @@ function openReply(bHash, quote, subject){
if (typeof humanReadableCache[key] != 'undefined'){
document.getElementById('draftID').value = humanReadableCache[key]
quote = '\n' + humanReadableCache[key].split(' ').slice(0,3).join(' ') + ' wrote:\n' + splitQuotes.join('\n')
quote = '\n' + humanReadableCache[key].split('-').slice(0,3).join('-') + ' wrote:\n' + splitQuotes.join('\n')
}
else{
quote = '\n' + key.substring(0, 12) + ' wrote:' + '\n' + splitQuotes.join('\n')