12d7f24d0f
Introduce new UI and behavior for playing audio attachments in conversations. Previously, playback stopped unexpectedly during window resizes and scrolling through the messages due to the row height recomputation in `react-virtualized`. With this commit we introduce `<GlobalAudioContext/>` instance that wraps whole conversation and provides an `<audio/>` element that doesn't get re-rendered (or destroyed) whenever `react-virtualized` recomputes messages. The audio players (with a freshly designed UI) now share this global `<audio/>` instance and manage access to it using `audioPlayer.owner` state from the redux. New UI computes on the fly, caches, and displays waveforms for each audio attachment. Storybook had to be slightly modified to accomodate testing of Android bubbles by introducing the new knob for `authorColor`. |
||
---|---|---|
.. | ||
message | ||
Attachment.ts | ||
Audio.tsx | ||
Calling.ts | ||
Colors.ts | ||
Contact.tsx | ||
Dialogs.ts | ||
I18N.ts | ||
IndexedDB.ts | ||
Logging.ts | ||
MapAsync.ts | ||
Message.ts | ||
MIME.ts | ||
PhoneNumber.ts | ||
Settings.ts | ||
SocketStatus.ts | ||
Util.ts |