[+] Call callbacks when unread is updated
This commit is contained in:
@@ -88,6 +88,7 @@ export class Assignment
|
|||||||
if (response.success)
|
if (response.success)
|
||||||
{
|
{
|
||||||
this.unread = false;
|
this.unread = false;
|
||||||
|
this.updateCallbacks.forEach(callback => callback());
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
else reject(response.data);
|
else reject(response.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user