Commit Graph

163 Commits

Author SHA1 Message Date
Tulir Asokan
a55ea42d7f Unbreak things 2019-06-15 01:11:54 +03:00
Jaron Swab
fcd44fe63f Users can now create a new room directly in Gomuks
Added the ability to create a room from within gomuks using the now
`/create` command. This comman takes the room name followed by the
alias. Room name may contain spaces but the alias may not as per the
Matrix alias conventions.

Also update `/help` to include the new command.
2019-06-13 21:14:32 -04:00
Tulir Asokan
6f54066c43 Add partial deadlock detection in debug mode 2019-04-27 15:02:52 +03:00
Tulir Asokan
bc7e2d9a1c Add locks and other sync stuff 2019-04-27 15:02:21 +03:00
Tulir Asokan
e5264a242d Fix user list 2019-04-13 14:27:50 +03:00
Tulir Asokan
45a68c7fb5 Fix tests 2019-04-10 02:47:47 +03:00
Tulir Asokan
b668c2cdc7 Fix last cached message not showing up when loading history 2019-04-10 02:25:22 +03:00
Tulir Asokan
bbde121947 It compiles. Ship it! 2019-04-10 01:04:39 +03:00
Tulir Asokan
dbee49476d Start refactoring various things in message rendering and sending 2019-04-09 18:45:41 +03:00
Tulir Asokan
d0c0af811e Fix syncing preferences from account data 2019-04-07 23:21:48 +03:00
Tulir Asokan
b81ba7b631 Add timeout to opening history db 2019-04-07 03:21:46 +03:00
Tulir Asokan
d0f55f4a6f Don't add events from state stream to timeline 2019-04-06 18:03:00 +03:00
Tulir Asokan
7ad2103f8f Move history storage to matrix package. Fixes #90 2019-04-05 23:44:17 +03:00
Tulir Asokan
1b1cabb360 Even more changes 2019-03-28 23:28:27 +02:00
Tulir Asokan
01f456781c Minor changes 2019-03-26 23:26:00 +02:00
Tulir Asokan
cc63a197c6 Change more things 2019-03-26 22:09:10 +02:00
Tulir Asokan
c3c7cc9b35 Change things 2019-03-26 19:57:44 +02:00
Tulir Asokan
ded4767729 Fix normal events being handled as state events 2019-03-26 16:59:38 +02:00
Tulir Asokan
bf2a5e9b34 Update license and sort imports 2019-01-23 00:26:51 +02:00
Tulir Asokan
331597b9f8 Switch to Go modules and make other changes 2019-01-11 23:28:47 +02:00
Tulir Asokan
912bf309d1 Fix tests 2018-11-14 01:11:40 +02:00
Tulir Asokan
a0815a6f3d Fix named colors and remove HTML from plaintext body when sending 2018-11-14 00:28:53 +02:00
Tulir Asokan
ba387764ca Fix things 2018-11-14 00:00:35 +02:00
Tulir Asokan
cfb2cc057c Update to latest gomatrix. Things are broken 2018-09-05 10:55:48 +03:00
Vishnunarayan K I
68db26bcac Emojify message (#65) 2018-07-02 10:00:42 +03:00
Tulir Asokan
b9079e22d2 Gofmt 2018-06-02 00:44:21 +03:00
Tulir Asokan
b76c8d0147 Add UI preferences and simplify config save/load (ref #43) 2018-05-24 23:27:12 +03:00
Tulir Asokan
55e36ad06a Change name of environment variable to disable TLS verification to match the nheko style 2018-05-23 01:16:14 +03:00
Tulir Asokan
f4066e72c3 Add environment variable to disable TLS verification 2018-05-23 01:05:56 +03:00
Tulir Asokan
14903e0cdc Add bare mode and fix terminal resize bug. Fixes #48 2018-05-22 22:06:49 +03:00
Tulir Asokan
cc28c7b65f Gofmt 2018-05-22 17:24:47 +03:00
Tulir Asokan
cce79ab7d8 Clean up code 2018-05-22 17:23:54 +03:00
Tulir Asokan
09703c6b9c Fix tests 2018-05-22 16:54:35 +03:00
Tulir Asokan
76cff95540 Move all cache to ~/.cache/gomuks
Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache`
2018-05-17 16:29:18 +03:00
Tulir Asokan
d6396bc02a Fix tests 2018-05-16 21:50:58 +03:00
Tulir Asokan
8a3fbc24ab Handle m.direct and m.receipt events
Fixes #12
Fixes #45
2018-05-16 20:51:43 +03:00
Tulir Asokan
cb3a6e764e Fix room ordering after initial sync (ref #36) 2018-05-15 18:47:34 +03:00
Tulir Asokan
fdbb168e2b Display ban/unban events 2018-05-15 18:02:36 +03:00
Tulir Asokan
2d64209572 Update state event handling 2018-05-15 17:55:08 +03:00
Tulir Asokan
b416d7d8b0 Add tests for downloading invalid URLs and getting history 2018-05-11 08:12:11 +03:00
Tulir Asokan
66b17967eb Update dependencies 2018-05-10 21:22:01 +03:00
Tulir Asokan
706f4c4404 Add tests for JoinRoom, LeaveRoom and Download 2018-05-10 20:31:19 +03:00
Tulir Asokan
1e6b599649 Don't parse room ID 2018-05-10 20:07:24 +03:00
Tulir Asokan
248db71c76 Add tests for sending stuff to Matrix 2018-05-10 20:03:19 +03:00
Tulir Asokan
151141f288 Add command to log out 2018-05-10 15:47:24 +03:00
Tulir Asokan
e42ce27e0a Fix room tag tests 2018-05-04 12:13:23 +03:00
Tulir Asokan
122b2441c9 Add support for explicit ordering and limiting rooms shown under a tag
Fixes #41
2018-05-04 00:55:30 +03:00
Tulir Asokan
b796c2e209 Fix go vet warnings 2018-05-02 23:55:02 +03:00
Tulir Asokan
a9390d3b5c Add more session and config tests 2018-05-02 23:52:38 +03:00
Tulir Asokan
c5ea283777 Add PushRuleCollection tests 2018-05-02 23:05:37 +03:00
Tulir Asokan
aec3b8d204 Add tests for PushRule.Match and fork glob to make it compatible with the spec 2018-05-02 22:30:57 +03:00
Tulir Asokan
06e8f14c8a Re-add function that was accidentally removed 2018-05-01 21:04:25 +03:00
Tulir Asokan
b49416ed80 Refactoring 2018-05-01 19:17:57 +03:00
Tulir Asokan
986c84b768 Update ui AddRoom and RemoveRoom parameters 2018-04-30 23:12:43 +03:00
Tulir Asokan
c600ce68a2 Fix room list updating when joining/leaving 2018-04-30 23:09:14 +03:00
Tulir Asokan
b3543e9090 Stop showing rooms the user has left in the room list. Fixes #35 2018-04-30 22:28:29 +03:00
Tulir Asokan
3de07ad550 Add tests for syncer and fix some bugs 2018-04-24 23:52:31 +03:00
Tulir Asokan
9ccceb48b9 Disable initial history fetch (comes with initial sync) 2018-04-24 22:08:09 +03:00
Tulir Asokan
28c6527544 Fix/break/change things 2018-04-24 17:12:08 +03:00
Tulir Asokan
e64df67ec3 Everything is no longer broken 2018-04-24 16:51:40 +03:00
Tulir Asokan
fcd9a932cb Initial move to initial sync. Everything broke :( 2018-04-24 02:14:00 +03:00
Tulir Asokan
2a0145db88 Handle tag events 2018-04-24 02:13:43 +03:00
Tulir Asokan
135fcbf284 Make time-based room list sorting persistent (ref #11) 2018-04-24 02:13:43 +03:00
Tulir Asokan
ee4b0be953 Possibly fix firstMemberCache being invalid 2018-04-23 00:13:41 +03:00
Tulir Asokan
ea965766b4 Gofmt and enable a test 2018-04-23 00:04:10 +03:00
Tulir Asokan
fafc7f55be Remove impossible check and improve things for testing 2018-04-22 23:59:46 +03:00
Tulir Asokan
ad540e268d Add tests for Room 2018-04-22 23:23:36 +03:00
Tulir Asokan
1085ddc390 Make room name from aliases calculation consistent 2018-04-22 23:23:30 +03:00
Tulir Asokan
bfb5f0dd45 Add room alias autocompletion 2018-04-22 21:05:42 +03:00
Tulir Asokan
7da1555c84 Improve Markdown rendering
* Remove paragraphs from output HTML
* Remove mention link wrapper from text (leaving only mention name)
2018-04-21 21:24:07 +03:00
Tulir Asokan
c3386ba118 Fix golint issues 2018-04-19 11:35:52 +03:00
Tulir Asokan
b1dc965a4a Gofmt 2018-04-19 11:10:34 +03:00
Tulir Asokan
b17ff318c2 Disconnect UI from main Gomuks struct. Fixes #21 2018-04-18 18:35:54 +03:00
Tulir Asokan
670d369c92 Remove debug prints 2018-04-18 14:48:25 +03:00
Tulir Asokan
bb36996194 Add support for sending Markdown messages 2018-04-18 14:46:03 +03:00
Tulir Asokan
215086dfac Add test file stubs to include them in coverage percentage 2018-04-17 15:42:43 +03:00
Tulir Asokan
b728678f0c Add tests for pushrule actions 2018-04-16 21:47:55 +03:00
Tulir Asokan
b0caa48db1 Set initial device name to "gomuks" 2018-04-16 21:30:34 +03:00
Tulir Asokan
0cdde557a3 Add tests for pushrule conditions and fix bugs found when making tests 2018-04-15 15:36:01 +03:00
Tulir Asokan
bb9ed4558b Refactor things 2018-04-15 14:03:05 +03:00
Tulir Asokan
53cdfb64c1
Merge pull request #18 from tulir/ui-refactor
Refactor UI to use interfaces and add advanced message rendering
2018-04-14 18:09:02 +03:00
Tulir Asokan
e7bf5bd59f Add basic HTML rendering (ref #16) 2018-04-14 00:34:25 +03:00
Tulir Asokan
92a2428865 Allow clicking images and load images from cache 2018-04-11 19:20:40 +03:00
Tulir Asokan
ff7ee333a1 Rename UIString to TString, move ansimage to lib/ and switch to tcell fork 2018-04-11 17:57:15 +03:00
Tulir Asokan
10ffa6189f Add a simple push rule parsing test 2018-04-10 20:51:30 +03:00
Tulir Asokan
8270bc0322 Move event parsing to ui/messages and add image displaying 2018-04-10 19:31:28 +03:00
Tulir Asokan
eda2b575f0 Refactor UI to use interfaces everywhere 2018-04-09 23:45:54 +03:00
Tulir Asokan
c6e9f498a4 Stop sending notifications from first sync 2018-04-02 13:47:20 +03:00
Tulir Asokan
e0298521c6 Add sounds to notifications 2018-03-26 18:04:10 +03:00
Tulir Asokan
b31d968814 Show notifications and highlights in room list. Fixes #8 2018-03-26 17:22:47 +03:00
Tulir Asokan
ef326eae82 Try to receive tags 2018-03-25 20:30:34 +03:00
Tulir Asokan
c128666109 Refactor things and add proper wheel scroll support 2018-03-25 12:35:50 +03:00
Tulir Asokan
1321e1a06a Possibly speed up syncs with filters 2018-03-24 14:16:11 +02:00
Tulir Asokan
38364646a7 Refactoring and documentation 2018-03-23 23:39:17 +02:00
Tulir Asokan
03e9a0d5ac Documentation and refactoring 2018-03-23 14:44:36 +02:00
Tulir Asokan
a3f48093eb gofmt and govet 2018-03-23 01:20:26 +02:00
Tulir Asokan
16635dcde7 Refactor PushRuleset#GetActions() and ViewMain event processing 2018-03-23 01:00:13 +02:00
Tulir Asokan
373b25c01c Rename matrix/room/ to matrix/rooms/ 2018-03-22 23:46:43 +02:00
Tulir Asokan
20a1a31fa8 Add doc.go files 2018-03-22 23:45:54 +02:00
Tulir Asokan
152b89ed5e Add support for m.emote. Fixes #6 2018-03-22 21:45:02 +02:00