Hi @Future_Vision ,
I'm afraid there is no way to refresh the Gallery "every time a new message is added". But you could try and add a Timer to collect the result like every 5 seconds as the workaround.
So, steps are as follows:
1\ Add a Timer Control, set duration as 5000 (milliseconds),
2\ OnTimerEnd of the Timer set to:
ClearCollect(colMessages,MicrosoftTeams.GetMessagesFromChannel(Gallery1.Selected.id, Gallery1_1.Selected.id).value)
3\ Use the collection as the data source of the Gallery.
4\ In case the Gallery.Select value is lost, you'd better create variables to store them.
Gallery1 select button:
Set(varGroup, ThisItem.id)
Gallery1_1 select button:
Set(varChannel, ThisItem.id)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.