Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fill holes in ChatType enum #14257

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

igor-sirotin
Copy link
Contributor

@igor-sirotin igor-sirotin commented Apr 2, 2024

Fix [HoleEnumConv] enum warning

Fixed this warning:

/src/app_service/service/chat/dto/chat.nim(302, 33) Warning: conversion to enum with holes is unsafe: ChatType(chatTypeInt) [HoleEnumConv]

The simplest fix here is to fill the hole in the ChatType enum. Value 5 corresponds to Timeline chat type, which is deprecated:
https://github.com/status-im/status-go/blob/8bf03609fc0f76eb8488869db1a7c22c68408c01/protocol/chat.go#L43-L45

  1. Added Timeline with {.deprecated.} pragma
  2. Marked [Deprecated] warning as error. You'll get this if you try to use it:
/src/app_service/service/chat/dto/chat.nim(310, 19) Error: Timeline is deprecated [Deprecated]
  1. Marked [HoleEnumConv] warning as error.

Fix [Spacing] warning

Fixed this warning:

src/app/modules/shared_modules/keycard_popup/controller.nim(653, 21) Warning: Number of spaces around '..<' is not consistent [Spacing]

Just removed a redundant space.

@status-im-auto
Copy link
Member

status-im-auto commented Apr 2, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 140d79e #1 2024-04-02 15:27:26 ~7 min macos/aarch64 🍎dmg
✔️ e3b2295 #2 2024-04-02 15:33:04 ~4 min macos/aarch64 🍎dmg
✔️ e3b2295 #2 2024-04-02 15:40:48 ~12 min macos/x86_64 🍎dmg
✔️ e3b2295 #4 2024-04-02 16:22:14 ~14 min linux/x86_64 📦tgz
✔️ e3b2295 #4 2024-04-02 16:22:21 ~6 min tests/nim 📄log
✔️ e3b2295 #3 2024-04-02 16:28:53 ~12 min tests/ui 📄log
✔️ e3b2295 #5 2024-04-02 16:40:53 ~24 min windows/x86_64 💿exe

@igor-sirotin igor-sirotin merged commit 89408ad into master Apr 3, 2024
8 checks passed
@igor-sirotin igor-sirotin deleted the chore/ChatType-enum-holes branch April 3, 2024 13:47
@jrainville jrainville added this to the 2.29.0 Beta milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants