mirror of https://gitlab.com/bashrc2/epicyon
Write file
parent
866a54437f
commit
0e268913f2
|
@ -50,14 +50,14 @@ def muteConversation(baseDir: str, nickname: str, domain: str,
|
|||
conversationId: str) -> None:
|
||||
"""Mutes the given conversation
|
||||
"""
|
||||
conversationDir = acctDir(baseDir, nickname, domain) + '/conversation'
|
||||
conversationDir = acctDir(baseDir, nickname, domain) + '/conversation'
|
||||
conversationFilename = \
|
||||
conversationDir + '/' + conversationId.replace('/', '#')
|
||||
if not os.path.isfile(conversationFilename):
|
||||
return
|
||||
if os.path.isfile(conversationFilename + '.muted'):
|
||||
return
|
||||
with open(conversationFilename + '.muted') as fp:
|
||||
with open(conversationFilename + '.muted', 'w+') as fp:
|
||||
fp.write('\n')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue