فهرست منبع

Re-enable replying

Kirk Trombley 3 سال پیش
والد
کامیت
6eb4f4b058
1فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  1. 8 9
      drivers/groupme_driver.py

+ 8 - 9
drivers/groupme_driver.py

@@ -143,15 +143,14 @@ class GroupMeBot(rollbot.Rollbot[GroupMeMessage]):
                             )
                         else:
                             attachments.append({"type": "image", "url": att.body})
-                    # TODO re-enable replies
-                    # if att.name == "reply":
-                    #     if att.body is None or not isinstance(att.body, str):
-                    #         raise ValueError("Invalid reply body type, must be message ID")
-                    #     attachments.append({
-                    #         "type": "reply",
-                    #         "base_reply_id": att.body,
-                    #         "reply_id": att.body,
-                    #     })
+                    if att.name == "reply":
+                        if att.body is None or not isinstance(att.body, str):
+                            raise ValueError("Invalid reply body type, must be message ID")
+                        attachments.append({
+                            "type": "reply",
+                            "base_reply_id": att.body,
+                            "reply_id": att.body,
+                        })
                          
         except:
             self.context.debugging = "".join(traceback.format_exc())