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