mirror of https://github.com/Syncplay/syncplay
Message about file you're playing was redundant
This commit is contained in:
parent
10a4d3f953
commit
d4ec7dac6e
|
@ -350,7 +350,7 @@ class SyncplayUserlist(object):
|
||||||
if (room and not file_):
|
if (room and not file_):
|
||||||
message = "<{}> has joined the room: '{}'".format(username, room)
|
message = "<{}> has joined the room: '{}'".format(username, room)
|
||||||
self.ui.showMessage(message)
|
self.ui.showMessage(message)
|
||||||
elif (room and file_):
|
elif (room and file_ and username != self.currentUser.username):
|
||||||
duration = self.ui.formatTime(file_['duration'])
|
duration = self.ui.formatTime(file_['duration'])
|
||||||
message = "<{}> is playing '{}' ({})".format(username, file_['name'], duration)
|
message = "<{}> is playing '{}' ({})".format(username, file_['name'], duration)
|
||||||
if(self.currentUser.room <> room or self.currentUser.username == username):
|
if(self.currentUser.room <> room or self.currentUser.username == username):
|
||||||
|
|
Loading…
Reference in New Issue