Skip to content

Commit

Permalink
Merge pull request #2764 from GetStream/develop
Browse files Browse the repository at this point in the history
Next Release
  • Loading branch information
isekovanic authored Nov 7, 2024
2 parents 5052d03 + 5258a18 commit 21d5bbc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ export const useLatestMessagePreview = <

useEffect(() => {
if (channelConfigExists) {
const read_events = channel.getConfig()?.read_events;
const read_events =
!channel.disconnected && !!channel?.id && channel.getConfig()?.read_events;
if (typeof read_events === 'boolean') {
setReadEvents(read_events);
}
Expand Down
2 changes: 1 addition & 1 deletion package/src/components/MessageInput/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ export const MessageInput = <
* Disable the message input if the channel is frozen, or the user doesn't have the capability to send a message.
* Enable it in frozen mode, if it the input has editing state.
*/
if (!editing && disabled && !ownCapabilities.sendMessage && SendMessageDisallowedIndicator) {
if ((disabled || !ownCapabilities.sendMessage) && !editing && SendMessageDisallowedIndicator) {
return <SendMessageDisallowedIndicator />;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ export const NativeAttachmentPicker = ({

// do not allow poll creation in threads
const buttons =
threadList && hasCreatePoll && ownCapabilities.sendPoll
? []
: [
!threadList && hasCreatePoll && ownCapabilities.sendPoll
? [
{
icon: <CreatePollIcon />,
id: 'Poll',
onPressHandler: () => {
openPollCreationDialog?.({ sendMessage });
},
},
];
]
: [];

if (hasImagePicker) {
buttons.push({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ exports[`Thread should match thread snapshot 1`] = `
"overflow": "hidden",
},
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#F2F2F2",
"borderBottomLeftRadius": 0,
"borderBottomRightRadius": 16,
"borderColor": "#ECEBEB",
Expand Down Expand Up @@ -742,7 +742,7 @@ exports[`Thread should match thread snapshot 1`] = `
"overflow": "hidden",
},
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#F2F2F2",
"borderBottomLeftRadius": 0,
"borderBottomRightRadius": 16,
"borderColor": "#ECEBEB",
Expand Down Expand Up @@ -1068,7 +1068,7 @@ exports[`Thread should match thread snapshot 1`] = `
"overflow": "hidden",
},
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#F2F2F2",
"borderBottomLeftRadius": 0,
"borderBottomRightRadius": 16,
"borderColor": "#ECEBEB",
Expand Down Expand Up @@ -1422,7 +1422,7 @@ exports[`Thread should match thread snapshot 1`] = `
"overflow": "hidden",
},
{
"backgroundColor": "#FFFFFF",
"backgroundColor": "#F2F2F2",
"borderBottomLeftRadius": 0,
"borderBottomRightRadius": 16,
"borderColor": "#ECEBEB",
Expand Down
2 changes: 1 addition & 1 deletion package/src/contexts/themeContext/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ export const defaultTheme: Theme = {
metaText: {
fontSize: 12,
},
receiverMessageBackgroundColor: Colors.white,
receiverMessageBackgroundColor: Colors.white_smoke,
replyBorder: {},
replyContainer: {},
senderMessageBackgroundColor: Colors.grey_gainsboro,
Expand Down

0 comments on commit 21d5bbc

Please sign in to comment.