This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Commit 8e2afe2
committed
Fix draft appearing after sucessful submit.
In certain situations, the inline comment thread was refreshed before the `DeleteDraft(comment)` line in `PullRequestReviewCommentThreadViewModel.PostComment` was run, meaning that the draft would be displayed _after_ the comment was succesfully submitted.
Work around this by deleting the draft before submitting the comment, and if we get an error re-insert the draft.1 parent 2c79611 commit 8e2afe2
File tree
1 file changed
+37
-22
lines changed- src/GitHub.App/ViewModels
1 file changed
+37
-22
lines changedLines changed: 37 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
175 | 191 | | |
176 | | - | |
| 192 | + | |
| 193 | + | |
177 | 194 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 195 | | |
186 | | - | |
| 196 | + | |
187 | 197 | | |
188 | | - | |
189 | | - | |
| 198 | + | |
| 199 | + | |
190 | 200 | | |
191 | | - | |
192 | | - | |
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
| |||
235 | 243 | | |
236 | 244 | | |
237 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
238 | 253 | | |
239 | 254 | | |
0 commit comments