sync flags on server start
This commit is contained in:
@@ -12,7 +12,8 @@ export default class updateMessage {
|
||||
}
|
||||
|
||||
async updateFlags() {
|
||||
const messageId = (await getMessageIdOnUid(this.uid))[0].message_id;
|
||||
const messageId = (await getMessageIdOnUid(this.uid))[0]?.message_id;
|
||||
if (!messageId) return;
|
||||
const currentFlags = await getFlags(this.uid);
|
||||
|
||||
const flagsToAdd = this.flags.filter((flag) => !currentFlags.find((f) => flag == f.flag_name));
|
||||
|
||||
Reference in New Issue
Block a user