Skip to content

Commit

Permalink
Merge branch 'main' of github.com:enokiun/voltage
Browse files Browse the repository at this point in the history
  • Loading branch information
EnokiUN committed Mar 2, 2024
2 parents 1c30f58 + 13310b2 commit 9a68c9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions voltage/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ def __init__(self, data: MessagePayload, cache: CacheHandler):
self.mention_ids = data.get("mentions", [])

if interactions := data.get("interactions"):
self.interactions.restrict_reactions = (
interactions.get("restrict_reactions") or False
)
self.interactions.restrict_reactions = interactions.get("restrict_reactions") or False

if reactions := data.get("reactions"):
for emoji_id, users in reactions.items():
Expand Down Expand Up @@ -312,7 +310,7 @@ def reactions(self) -> Dict[str, List[User]]:
def jump_url(self) -> str:
"""Returns a URL that allows the client to jump to the message."""
server_segment = "" if self.server is None else f"/server/{self.server.id}"
return f"https://app.revolt.chat/{server_segment}channel/{self.channel.id}/{self.id}"
return f"https://app.revolt.chat{server_segment}/channel/{self.channel.id}/{self.id}"

@property
def mentions(self) -> list[Union[User, Member]]:
Expand Down

0 comments on commit 9a68c9d

Please sign in to comment.