Skip to content

Commit be50f93

Browse files
committed
Fix pending message
1 parent 1cbc26d commit be50f93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/pages/threads/_id.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ export default Vue.extend({
240240
241241
isExpired(message: Message): boolean {
242242
return (
243+
this.isPending(message) &&
243244
new Date().getTime() - new Date(message.created_at).getTime() >
244-
5 * 60 * 1000
245+
5 * 60 * 1000
245246
) // 5 minutes
246247
},
247248

0 commit comments

Comments
 (0)