prevent edit if no change made to message text

This commit is contained in:
Zachary Huang 2022-12-30 12:32:44 -05:00
parent 03dfd561b4
commit ea60f6ce5f
1 changed files with 2 additions and 0 deletions

View File

@ -788,6 +788,8 @@ class Interface
if message_text.length <= 1
Display.say 'Empty message, not updating...'
elsif message_text == message.message
Display.say 'No change made, not updating...'
else
Message.edit(message_text, message)
Display.say 'Message edited!'