Skip to content

Commit 750eecf

Browse files
authored
Merge pull request #30 from deltachat/wofwca/adjust-getAvatar-readme
docs: `getAvatar()` not necessarily `data:` URL
2 parents 5f45b5c + 52c03e6 commit 750eecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To integrate into your Delta Chat client you need to provide a
1111
- `acceptCall: (answerPayload: string) => void` (implementation must call `dc_accept_incoming_call` chatmail core API)
1212
- `endCall: () => void` (implementation must call `dc_end_call` chatmail core API)
1313
- `getIceServers: () => string` (returns a JSON string with array of ice server configurations as expected by https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration)
14-
- `getAvatar: () => string` (returning the chat's avatar image data-URL encoded, ex. `"data:image/png;base64,..."`)
14+
- `getAvatar: () => string` (returning the chat's avatar image URL; can be a regular URL or a data-URL, ex. `"data:image/png;base64,..."`)
1515

1616
Commands are given to the app via URL hash:
1717

0 commit comments

Comments
 (0)