update fork #128

Manually merged
tristan merged 181 commits from mirror/monocles_chat_clean:master into master 2026-01-23 14:02:38 +01:00
Showing only changes of commit a05dc01656 - Show all commits

Fix reappearing older stories after creating a new one

Arne 2026-01-17 12:40:22 +01:00

View file

@ -170,8 +170,9 @@ public class StoryViewActivity extends XmppActivity implements StoryFragment.OnS
if (storyIds != null && position < storyIds.size()) {
final String currentStoryId = storyIds.get(position);
if (xmppConnectionService != null) {
long twentyFourHoursAgo = System.currentTimeMillis() - 86400000;
for (Story story : xmppConnectionService.getStories()) {
if (story.getUuid().equals(currentStoryId)) {
if (story.getUuid().equals(currentStoryId) && story.getPublished() >= twentyFourHoursAgo) {
publishedTimestamp = story.getPublished();
break;
}