@@ -2129,7 +2129,7 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
2129
2129
}
2130
2130
2131
2131
/// A [_Banner] that replaces the compose box's text inputs.
2132
- Widget ? _errorBannerComposingNotAllowed (BuildContext context) {
2132
+ Widget ? _bannerComposingNotAllowed (BuildContext context) {
2133
2133
final store = PerAccountStoreWidget .of (context);
2134
2134
final zulipLocalizations = ZulipLocalizations .of (context);
2135
2135
switch (widget.narrow) {
@@ -2139,7 +2139,7 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
2139
2139
if (channel == null || ! store.selfCanSendMessage (inChannel: channel,
2140
2140
byDate: DateTime .now ())) {
2141
2141
return _Banner (
2142
- intent: _BannerIntent .danger ,
2142
+ intent: _BannerIntent .info ,
2143
2143
label: zulipLocalizations.errorBannerCannotPostInChannelLabel);
2144
2144
}
2145
2145
@@ -2148,7 +2148,7 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
2148
2148
! (store.getUser (id)? .isActive ?? true ));
2149
2149
if (hasDeactivatedUser) {
2150
2150
return _Banner (
2151
- intent: _BannerIntent .danger ,
2151
+ intent: _BannerIntent .info ,
2152
2152
label: zulipLocalizations.errorBannerDeactivatedDmLabel);
2153
2153
}
2154
2154
@@ -2165,10 +2165,10 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
2165
2165
Widget build (BuildContext context) {
2166
2166
final zulipLocalizations = ZulipLocalizations .of (context);
2167
2167
2168
- final errorBanner = _errorBannerComposingNotAllowed (context);
2169
- if (errorBanner != null ) {
2168
+ final bannerComposingNotAllowed = _bannerComposingNotAllowed (context);
2169
+ if (bannerComposingNotAllowed != null ) {
2170
2170
return ComposeBoxInheritedWidget .fromComposeBoxState (this ,
2171
- child: _ComposeBoxContainer (body: null , banner: errorBanner ));
2171
+ child: _ComposeBoxContainer (body: null , banner: bannerComposingNotAllowed ));
2172
2172
}
2173
2173
2174
2174
final Widget ? body;
0 commit comments