Appearance
The group name and photo editor
Reached from a group conversation.
Every example starts from saved, the checkpoint the index describes; the launch hands the feed, and a tab edge lands on the tab's root.
Rename a group
The editor belongs to group threads: a one-to-one thread does not open it.
The group name editor: changeName(name).
ts
// Rename a group: details, shared media, then the group name editor.
const renamed = await AndroidIgpapi.launch({
checkpoint: saved,
screen: FeedTimelineScreen,
main: feed =>
Effect.gen(function* () {
const tab = yield* feed.openDirectTab();
const item = tab.threads.find(candidate => candidate.data.is_group);
if (item === undefined) return undefined;
const thread = yield* item.open();
const details = yield* thread.openThreadDetails();
const media = yield* details.openSharedMedia();
// The editor belongs to group threads; a one-to-one thread does not open it.
const editor = yield* media.openGroupNameEditor();
return yield* editor.changeName('New name');
}),
});
console.log(renamed);