Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

perhaps get some history when joining a channel #435

@userappgate

Description

@userappgate

It happened that the some user mentions me in a channel I'm not, and this triggers an event to join said channel, but that happens after the message was sent, so the channel is joined and there is no message.

It could be good to fetch some history when joining a channel, just in case the previous message was a mention.

GroupJoined(type='group_joined', channel=Channel(id='CHANNELID', name_normalized='random', purpose=Topic(value='...'), topic=Topic(value='...'), num_members=0, is_member=True, is_channel=False, is_group=True, is_mpim=False, latest=LatestMessage(ts=1696935601.819019)))
Join(type='member_joined_channel', user='ASDASDASD', channel='CHANNELID')

Probably the latest message can be used to fetch the latest message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions