From 7486a9cde1913f20307590c9ef4c57647edb8226 Mon Sep 17 00:00:00 2001 From: dank074 Date: Fri, 7 Jan 2022 00:26:53 -0600 Subject: [PATCH] add missing property to issue close alert --- .../parser/help/IssueCloseNotificationMessageParser.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/nitro/communication/messages/parser/help/IssueCloseNotificationMessageParser.ts b/src/nitro/communication/messages/parser/help/IssueCloseNotificationMessageParser.ts index 1053148c..b430e7c6 100644 --- a/src/nitro/communication/messages/parser/help/IssueCloseNotificationMessageParser.ts +++ b/src/nitro/communication/messages/parser/help/IssueCloseNotificationMessageParser.ts @@ -3,11 +3,12 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class IssueCloseNotificationMessageParser implements IMessageParser { private _closeReason: number; + private _messageText: string; public flush(): boolean { this._closeReason = 0; - + this._messageText = ''; return true; } @@ -16,6 +17,7 @@ export class IssueCloseNotificationMessageParser implements IMessageParser if(!wrapper) return false; this._closeReason = wrapper.readInt(); + this._messageText = wrapper.readString(); return true; } @@ -24,4 +26,9 @@ export class IssueCloseNotificationMessageParser implements IMessageParser { return this._closeReason; } + + public get messageText(): string + { + return this._messageText; + } }