pull/1857/head
Erik Johnston 2017-01-27 10:35:12 +00:00
parent c517a19c2d
commit 84a35f32c7
1 changed files with 2 additions and 0 deletions

View File

@ -285,6 +285,8 @@ class DeviceStore(SQLBaseStore):
results = []
for user_id, user_devices in devices.iteritems():
# We bind literal True, as its database dependent how booleans are
# handled.
txn.execute(prev_sent_id_sql, (destination, user_id, True))
rows = txn.fetchall()
prev_id = rows[0][0]