import requests

from synapse.qn.utils import QnConfig as cfg


class ResendMessage:
    def __init__(self, message_dict):
        if message_dict["type"] == "m.room.message":
            url = cfg().resend_endpoint
            requests.post(url, json=message_dict)

import requests

from synapse.qn.utils import QnConfig as cfg


class ResendMessage:
    def __init__(self, message_dict):
        if message_dict["type"] == "m.room.message":
            url = cfg().resend_endpoint
            requests.post(url, json=message_dict)
