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

perhaps get some history when joining a channel #435

Open
userappgate opened this issue Oct 10, 2023 · 0 comments
Open

perhaps get some history when joining a channel #435

userappgate opened this issue Oct 10, 2023 · 0 comments

Comments

@userappgate
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant