Skip to main content
Set or clear the chat background image. Import background from the iMessage provider and use the sugar method on a narrowed space:
space.background(...) is sugar for space.send(background(...)). The canonical form works on any space reference:
After a successful set, the background usually syncs to other users’ devices within 30s. The background asset is uploaded to iCloud and then distributed to the other members of the conversation. Display time is not a hard SLA: network state, iCloud state, and the Messages client state can all affect when the UI appears. Background UI may not appear in these cases:
The second case is an Apple Messages display limit, not a Spectrum option. If one group member never sees the background, have that member send a message in the group, mark the sender as known, or reopen Messages before retrying the background change.
Chat backgrounds require @spectrum-ts/imessage. With @spectrum-ts/imessage-local, background() throws an .
The string "clear" is a reserved sentinel. If you have a file literally named clear with no extension, pass "./clear" or load it as a Buffer.