mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: saving drafts unconditionally increases sequence
Previously we only changed sequence on ownership change, this cause a race condition between tabs where user could type for a long time without being warned of an out of date draft. This change is a radical change and we should watch closely. Code was already in place to track sequence on the client so no changes are needed there.
This commit is contained in:
parent
451e9c4bb9
commit
a29ae17d3a
5 changed files with 38 additions and 23 deletions
|
@ -48,7 +48,7 @@ end
|
|||
# id :integer not null, primary key
|
||||
# user_id :integer not null
|
||||
# draft_key :string not null
|
||||
# sequence :integer not null
|
||||
# sequence :bigint not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue