mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
purging empty drafts
This commit is contained in:
parent
ba109a7479
commit
a4e5cc372e
@ -170,7 +170,7 @@ const initialState:State = {
|
||||
|
||||
if (state.drafts && state.drafts.size) {
|
||||
Array.from(state.drafts).forEach((entry) => {
|
||||
if(entry[1].expiresAt < currentTime){
|
||||
if (entry[1].expiresAt < currentTime || !entry[1].body) {
|
||||
state.drafts.delete(entry[0]);
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user