minor fix
This commit is contained in:
@@ -146,7 +146,7 @@ class ChannelModel {
|
||||
/// Returns a new [ChannelModel] that is a combination of this channelModel and the given
|
||||
/// [other] channelModel.
|
||||
ChannelModel merge(ChannelModel other) {
|
||||
if (other == null) return null;
|
||||
if (other == null) return this;
|
||||
return copyWith(
|
||||
id: other.id,
|
||||
type: other.type,
|
||||
|
||||
@@ -254,7 +254,7 @@ class Message {
|
||||
/// Returns a new [Message] that is a combination of this message and the given
|
||||
/// [other] message.
|
||||
Message merge(Message other) {
|
||||
if (other == null) return null;
|
||||
if (other == null) return this;
|
||||
return copyWith(
|
||||
id: other.id,
|
||||
text: other.text,
|
||||
|
||||
Reference in New Issue
Block a user