Switched to new method for sending Direct messages #215

This commit is contained in:
2018-07-25 11:22:57 -05:00
parent 931cadfffa
commit 28b6d554e2
3 changed files with 38 additions and 11 deletions

View File

@@ -1313,10 +1313,10 @@ class Controller(object):
buffer.add_new_item(data)
def manage_sent_dm(self, data, user):
buffer = self.search_buffer("sent_direct_messages", user)
buffer = self.search_buffer("direct_messages", user)
if buffer == None: return
play_sound = "dm_sent.ogg"
if "sent_direct_messages" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
if "direct_messages" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
self.notify(buffer.session, play_sound=play_sound)
buffer.add_new_item(data)