Reenable presence tests and remove pointless change
parent
e9aa401994
commit
27dbc9ac42
|
@ -397,9 +397,7 @@ class TransactionQueue(object):
|
|||
else:
|
||||
self.pending_edus_by_dest.setdefault(edu.destination, []).append(edu)
|
||||
|
||||
destination = edu.destination
|
||||
|
||||
self._attempt_new_transaction(destination)
|
||||
self._attempt_new_transaction(edu.destination)
|
||||
|
||||
def send_device_messages(self, destination):
|
||||
if destination == self.server_name:
|
||||
|
|
|
@ -761,13 +761,11 @@ class RoomInitialSyncTestCase(RoomBase):
|
|||
|
||||
self.assertTrue("presence" in channel.json_body)
|
||||
|
||||
# presence is turned off on hotfixes
|
||||
|
||||
# presence_by_user = {
|
||||
# e["content"]["user_id"]: e for e in channel.json_body["presence"]
|
||||
# }
|
||||
# self.assertTrue(self.user_id in presence_by_user)
|
||||
# self.assertEquals("m.presence", presence_by_user[self.user_id]["type"])
|
||||
presence_by_user = {
|
||||
e["content"]["user_id"]: e for e in channel.json_body["presence"]
|
||||
}
|
||||
self.assertTrue(self.user_id in presence_by_user)
|
||||
self.assertEquals("m.presence", presence_by_user[self.user_id]["type"])
|
||||
|
||||
|
||||
class RoomMessageListTestCase(RoomBase):
|
||||
|
|
Loading…
Reference in New Issue