Skip to content

Commit

Permalink
Update scalafmt-core to 3.7.15 in main (#153)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.7.15 in main

* Reformat with scalafmt 3.7.15

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.7.15' to .git-blame-ignore-revs

---------

Signed-off-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
Co-authored-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
  • Loading branch information
2 people authored and mineme0110 committed Apr 30, 2024
1 parent 4cd9c83 commit c7b7415
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Scala Steward: Reformat with scalafmt 3.7.8
7f0ad6980840682687eb6bc0017014e08ae46421

# Scala Steward: Reformat with scalafmt 3.7.15
3e95a584d68fdb4506caa91a0c7833d277dc8c8d
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.14"
version = "3.7.15"
runner.dialect = scala3

maxColumn = 120
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,20 @@ object PickupExecuter
case Some(didAccount) =>
val msgHash = didAccount.messagesRef.filter(_.state == false).map(_.hash)
if (msgHash.isEmpty) {
ZIO.succeed(Status(
thid = m.id,
from = m.to.asFROM,
to = m.from.asTO,
recipient_did = m.recipient_did,
message_count = msgHash.size,
longest_waited_seconds = None, // TODO
newest_received_time = None, // TODO
oldest_received_time = None, // TODO
total_bytes = None, // TODO
live_delivery = None, // TODO
).toPlaintextMessage)
ZIO.succeed(
Status(
thid = m.id,
from = m.to.asFROM,
to = m.from.asTO,
recipient_did = m.recipient_did,
message_count = msgHash.size,
longest_waited_seconds = None, // TODO
newest_received_time = None, // TODO
oldest_received_time = None, // TODO
total_bytes = None, // TODO
live_delivery = None, // TODO
).toPlaintextMessage
)
} else {
for {
allMessagesFor <- repoMessageItem.findByIds(msgHash)
Expand All @@ -145,7 +147,7 @@ object PickupExecuter
recipient_did = m.recipient_did,
attachments = messagesToReturn.map(m => (m._id, m.msg)).toMap,
).toPlaintextMessage
}
}

} yield SyncReplyOnly(ret)
case m: MessageDelivery =>
Expand Down

0 comments on commit c7b7415

Please sign in to comment.