Hack fix for not displaying room change for yourself
This commit is contained in:
parent
70edc71c46
commit
38cce5012f
@ -526,7 +526,7 @@ class SyncplayUserlist(object):
|
||||
def __displayModUserMessage(self, username, room, file_, user):
|
||||
if (file_ and not user.isFileSame(file_)):
|
||||
self.__showUserChangeMessage(username, room, file_)
|
||||
elif (room and room != user.room):
|
||||
elif (room and (room != user.room or self.currentUser == user)):
|
||||
self.__showUserChangeMessage(username, room, None)
|
||||
|
||||
def modUser(self, username, room, file_):
|
||||
@ -536,7 +536,7 @@ class SyncplayUserlist(object):
|
||||
user.room = room
|
||||
user.file = file_
|
||||
elif(username == self.currentUser.username):
|
||||
self.__showUserChangeMessage(username, room, file_)
|
||||
self.__displayModUserMessage(username, room, file_, self.currentUser)
|
||||
else:
|
||||
self.addUser(username, room, file_)
|
||||
self.userListChange()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user